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()); } }
public ActionResult List() { try { var result = _shiftBusiness.GetAll(); return(View(result)); } catch (Exception) { return(View()); } }