Пример #1
0
        public virtual PartialViewResult EditByApplication(long?applicationId)
        {
            ViewData.TemplateInfo.HtmlFieldPrefix = "Transit";

            ViewBag.Cities = _cities.All(_identity.Language).ToDictionary(x => x.Id, x => x.Name);


            return(!applicationId.HasValue
                                ? PartialView()
                                : GetEditPartialView(() => _transits.GetByApplication(applicationId.Value)));
        }