Пример #1
0
        public ActionResult Add(Bus bus)
        {
            ValidateEntry(bus);

            if (ModelState.IsValid)
            {
                _busesRepository.AddBusPark(bus);

                TempData["Message"] = "Your bus was successfully added!";

                return(RedirectToAction("Index"));
            }
            return(View(bus));
        }