public Medicine AddMedicine(Medicine medicine)
 {
     return(_medicineRepository.Add(medicine));
 }
Exemplo n.º 2
0
        public IActionResult AddMedicine([FromBody] Medicine model)
        {
            _repo.Add(model);

            return(new OkObjectResult(new { MedicineId = model.MedicineId }));
        }