public ActionResult DeleteStop(DeleteStopViewModel model)
 {
     int cityId = (int)Session["City"];
     if (ModelState.IsValid)
     {
         try
         {
             stopsRepository.Delete(int.Parse(model.Stop));
             model.Stop = "";
             TempData["Success"] = "Запись удалена";
         }
         catch (Exception ex)
         {
             NLog.LogManager.GetCurrentClassLogger().Error(ex);
             ModelState.AddModelError("", "Ошибка при удалении записи. Повторите попытку позже");
         }
     }
     model.Stops = new List<SelectListItem>(stopsRepository.Get(x => x.CityId == cityId).Select(x => new SelectListItem { Value = x.Id.ToString(), Text = x.Name }));
     return View(model);
 }
        public ActionResult DeleteStop()
        {
            int cityId = (int)Session["City"];

            DeleteStopViewModel model = new DeleteStopViewModel
            {
                Stops = new List<SelectListItem>(stopsRepository.Get(x => x.CityId == cityId).Select(x => new SelectListItem { Value = x.Id.ToString(), Text = x.Name }))
            };
            return View(model);
        }