Ejemplo n.º 1
0
 public ActionResult Medical()
 {
     MedicineService medicineService = new MedicineService();
     List<MedicalModel> medicalModels = ConvertCoreToModel(medicineService.GetAllMedicines());
     return View(medicalModels);
 }
Ejemplo n.º 2
0
 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 };
 }