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)); }
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)); }