// GET: TenantEmailConfigs/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } TenantEmailConfig tenantEmailConfig = _tenantEmailConfigServices.GetEmailConfigById(id ?? 0); if (tenantEmailConfig == null) { return(HttpNotFound()); } return(View(tenantEmailConfig)); }
// GET: /TenantEmailConfig/Details/5 public ActionResult Details(int?id) { if (!caSession.AuthoriseSession()) { return(Redirect((string)Session["ErrorUrl"])); } if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } TenantEmailConfig tenantemailconfig = _tenantEmailConfigService.GetEmailConfigById((int)id); if (tenantemailconfig == null) { return(HttpNotFound()); } return(View(tenantemailconfig)); }