Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Farmatiko/Controllers/MedicineListController.cs

    ra55ef91 rc406ae5  
    11using System.Collections.Generic;
    22using System.Linq;
     3using System.Threading.Tasks;
    34using FarmatikoData.Models;
    45using FarmatikoServices.FarmatikoServiceInterfaces;
     
    1718        }
    1819        [HttpGet]
    19         public IQueryable<MedicineList> Get()
     20        public Task<IQueryable<MedicineList>> Get()
    2021        {
    2122            return _medicineListService.GetAll();
    2223        }
    2324        [HttpGet]
    24         public ICollection<MedicineList> GetByName(string Name)
     25        public Task<ICollection<MedicineList>> GetByName(string Name)
    2526        {
    2627            return _medicineListService.GetByName(Name);
    2728        }
    2829        [HttpGet]
    29         public ICollection<MedicineList> GetByManufacturer(string Manufacturer)
     30        public Task<ICollection<MedicineList>> GetByManufacturer(string Manufacturer)
    3031        {
    3132            return _medicineListService.GetByManufacturer(Manufacturer);
Note: See TracChangeset for help on using the changeset viewer.