public ActionResult AddCompany(Company model) { if (!ModelState.IsValid) { return(View(model)); } try { companiesService.SaveCompany(model); } catch (System.Exception ex) { return(RedirectToAction("GetCompaniesList", new { errorMessage = ex.Message })); } return(RedirectToAction("GetCompaniesList")); }