public async Task <ActionResult <bool> > PostMedicine(Medicine medicine)
        {
            if (medicine == null)
            {
                return(BadRequest());
            }

            var result = await _repository.PostMedicine(medicine);

            return(Ok(result));
        }
 public async Task <ActionResult <Medicine> > PostMedicine(Medicine medicine)
 {
     _medicineRepository.PostMedicine(medicine);
     return(CreatedAtAction("GetMedicine", new { id = medicine.MedicineId }, medicine));
 }