public ActionResult Medical() { MedicineService medicineService = new MedicineService(); List<MedicalModel> medicalModels = ConvertCoreToModel(medicineService.GetAllMedicines()); return View(medicalModels); }
public ActionResult GetMedicineDetailsById(int id) { var medicineService = new MedicineService(); var medicalModel = ConvertCoreToModel(medicineService.GetAllMedicines().Where(medicine => medicine.MedicineId == id).ToList()); return new JsonResult { Data = medicalModel }; }