Пример #1
0
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            Company company = _companiesRepository.FindCompanyById(id);

            if (company == null)
            {
                return(NotFound());
            }
            ViewBag.SelectedNav = "Dashboard";
            return(View(company));
        }