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