public ActionResult Add(int id)
 {
     try
     {
         ViewBag.ShiftLst = _shiftTimeBusiness.GetAll();
         ViewBag.DayLst   = CreateDay.getLstDay();
         DoctorScheduleView view = new DoctorScheduleView();
         view.ID = id;
         return(View(view));
     }
     catch (Exception)
     {
         return(View());
     }
 }
Exemplo n.º 2
0
 public ActionResult List()
 {
     try
     {
         var result = _shiftBusiness.GetAll();
         return(View(result));
     }
     catch (Exception)
     {
         return(View());
     }
 }