public ActionResult Add() { try { ViewBag.TourLst = _doctorBusiness.GetAll(); return(View()); } catch (Exception) { return(View()); } }
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 = _doctorBusiness.GetAll(); return(View(result)); } catch (Exception) { return(View()); } }
public ActionResult Doctors() { try { var result = _doctorBusiness.GetAll(); return(PartialView(result)); } catch (Exception) { return(PartialView()); } }