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