public ActionResult Add(int id) { if (!isAuthenticated()) { return(RedirectToAction("Index", "Auth")); } Departure departure = new Departure(); var line = lineBLL.GetLineFromId(id); departure.Line = line; departure.DateTime = DateTime.Now; return(View(departure)); }
public ActionResult Edit(int id) { if (!isAuthenticated()) { return(RedirectToAction("Index", "Auth")); } Line line = _lineBll.GetLineFromId(id); return(View(line)); }