public ActionResult GetGroupName(int id) { var msg = ""; try { var model = _secretSantaBl.GroupEditModelByGroupId(id); return(PartialView("_GroupName", model)); } catch (AppException ax) { msg = ax.Message; } catch (Exception ex) { ModelState.AddModelError("", ex.Message); _log.LogError(" - ", ex.Message); } return(PartialView("_ErrorMessage", new StringModel(msg))); }