public ActionResult ChangePickupDay() { var days = GetAllDays(); var model = new PickupDayModel(); model.Days = GetSelectListItems(days); return(View(model)); }
public ActionResult ChangePickupDay(PickupDayModel model) { var days = GetAllDays(); model.Days = GetSelectListItems(days); if (ModelState.IsValid) { Session["PickupDayModel"] = model; return(RedirectToAction("Done")); } return(View("ChangeDay", model)); }