public ActionResult DeleteFAQCategory(int faqCatId) { try { _portalAdminService.TaBortFAQKategori(faqCatId); } catch (Exception e) { Console.WriteLine(e); ErrorManager.WriteToErrorLog("SystemController", "DeleteFAQCategory", e.ToString(), e.HResult, User.Identity.Name); var errorModel = new CustomErrorPageModel { Information = "Ett fel inträffade när FAQ-kategori skulle tas bort.", ContactEmail = ConfigurationManager.AppSettings["ContactEmail"], }; return(View("CustomError", errorModel)); } return(RedirectToAction("GetFAQCategories")); }