public Medicine AddMedicine(Medicine medicine) { return(_medicineRepository.Add(medicine)); }
public IActionResult AddMedicine([FromBody] Medicine model) { _repo.Add(model); return(new OkObjectResult(new { MedicineId = model.MedicineId })); }