- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Farmatiko/Controllers/MedicineListController.cs
ra55ef91 rc406ae5 1 1 using System.Collections.Generic; 2 2 using System.Linq; 3 using System.Threading.Tasks; 3 4 using FarmatikoData.Models; 4 5 using FarmatikoServices.FarmatikoServiceInterfaces; … … 17 18 } 18 19 [HttpGet] 19 public IQueryable<MedicineList> Get()20 public Task<IQueryable<MedicineList>> Get() 20 21 { 21 22 return _medicineListService.GetAll(); 22 23 } 23 24 [HttpGet] 24 public ICollection<MedicineList> GetByName(string Name)25 public Task<ICollection<MedicineList>> GetByName(string Name) 25 26 { 26 27 return _medicineListService.GetByName(Name); 27 28 } 28 29 [HttpGet] 29 public ICollection<MedicineList> GetByManufacturer(string Manufacturer)30 public Task<ICollection<MedicineList>> GetByManufacturer(string Manufacturer) 30 31 { 31 32 return _medicineListService.GetByManufacturer(Manufacturer);
Note:
See TracChangeset
for help on using the changeset viewer.