public ActionResult GetInformationTexts(string selectedInfoType = "", string selectedText = "") { var model = new SystemViewModels.SystemViewModel(); try { model.InfoPages = _portalAdminService.HamtaInformationstexter(); model.SelectedInfo = selectedInfoType; model.SelectedInfoText = selectedText; } catch (Exception e) { Console.WriteLine(e); ErrorManager.WriteToErrorLog("SystemController", "GetInformationTexts", e.ToString(), e.HResult, User.Identity.Name); var errorModel = new CustomErrorPageModel { Information = "Ett fel inträffade vid hämtning av informationstexter.", ContactEmail = ConfigurationManager.AppSettings["ContactEmail"], }; return(View("CustomError", errorModel)); } return(View("EditInfoTexts", model)); }