예제 #1
0
        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));
        }
예제 #2
0
        public ActionResult Edit(int id)
        {
            if (!isAuthenticated())
            {
                return(RedirectToAction("Index", "Auth"));
            }
            Line line = _lineBll.GetLineFromId(id);

            return(View(line));
        }