public ActionResult TopWidget() { try { ViewBag.NumberDoctor = _doctorBusiness.GetAll().Count(); ViewBag.NumberPatient = _patientBusiness.GetAll().Count(); ViewBag.NumberAppointment = _appoinmentBusiness.GetAll().Count(); ViewBag.Revenue = _appoinmentBusiness.GetAll().Sum(x => x.Amount); return(PartialView()); } catch (Exception) { return(PartialView()); } }
public ActionResult List() { try { var result = _appoinmentBusiness.GetAll(); return(View(result)); } catch (Exception) { return(View()); } }