public async Task <ActionResult> SchoolLeaderDetail(int id) { var webContent = await _webContentDal.QueryByIdAsync(id); webContent.WebContentType = await _webContentTypeDal.QueryByIdAsync(webContent.WebContentTypeId); return(View(webContent)); }
// GET: Admin/WebContents/Details/5 public async Task <ActionResult> Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } WebContent webContent = await _webContentDal.QueryByIdAsync(id); if (webContent == null) { return(HttpNotFound()); } webContent.WebContentType = await _webContentTypeDal.QueryByIdAsync(webContent.WebContentTypeId); return(View(webContent)); }
// GET: WebContents/Details/5 public async Task <ActionResult> Details(int?id) { if (id == null) { return(RedirectToAction("Index")); } var webContent = await _webContentDal.QueryByIdAsync(id); webContent.WebContentType = await _webContentTypeDal.QueryByIdAsync(webContent.WebContentTypeId); return(View(webContent)); }