Ignore:
Timestamp:
07/31/20 10:15:02 (3 years ago)
Author:
DimitarSlezenkovski <dslezenkovski@…>
Branches:
master
Children:
d8fafb8
Parents:
4e72684
Message:

Update & add service

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Farmatiko/Controllers/MedicineController.cs

    r4e72684 ra55ef91  
    1 using System;
    2 using System.Collections.Generic;
    3 using System.Linq;
    4 using System.Threading.Tasks;
     1using System.Linq;
    52using FarmatikoData.Models;
    63using FarmatikoServices.FarmatikoServiceInterfaces;
     
    1916        }
    2017        [HttpGet]
    21         public IEnumerable<Medicine> Get()
     18        public IQueryable<Medicine> Get()
    2219        {
    2320            return _medicineService.GetAll();
    2421        }
     22        /*[HttpPost]
     23        public void Add(Medicine medicine)
     24        {
     25            _medicineService.Add(medicine);
     26        }
     27        [HttpPost]
     28        public void Remove(string Medicine)
     29        {
     30            _medicineService.Remove(Medicine);
     31        }
     32        [HttpGet]
     33        public IQueryable<Medicine> GetByName(string Name)
     34        {
     35            return _medicineService.GetByName(Name);
     36        }
     37        [HttpGet]
     38        public IQueryable<Medicine> GetByManufacturer(string Manufacturer)
     39        {
     40            return _medicineService.GetByManufacturer(Manufacturer);
     41        }*/
    2542    }
    2643}
Note: See TracChangeset for help on using the changeset viewer.