public ActionResult AutoMedicine() { IEnumerable <AutoMedicine> lstRecords = null; try { lstRecords = medicineRepository.AutoMedicine(1); } catch (Exception ex) { log.Error(ex); } return(Json(lstRecords)); }