Beispiel #1
0
        public ActionResult EditCompany(int?id)
        {
            ViewBag.Title = "Edit company";

            Company model;

            try
            {
                model = companiesService.GetCompanyById(id);
            }
            catch (System.Exception ex)
            {
                return(RedirectToAction("GetCompaniesList", new { errorMessage = ex.Message }));
            }

            return(View(model));
        }