예제 #1
0
 public ActionResult Add()
 {
     try
     {
         ViewBag.TourLst = _doctorBusiness.GetAll();
         return(View());
     }
     catch (Exception)
     {
         return(View());
     }
 }
예제 #2
0
 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());
     }
 }
예제 #3
0
 public ActionResult List()
 {
     try
     {
         var result = _doctorBusiness.GetAll();
         return(View(result));
     }
     catch (Exception)
     {
         return(View());
     }
 }
예제 #4
0
 public ActionResult Doctors()
 {
     try
     {
         var result = _doctorBusiness.GetAll();
         return(PartialView(result));
     }
     catch (Exception)
     {
         return(PartialView());
     }
 }