예제 #1
0
        public async Task <ActionResult> SchoolLeaderDetail(int id)
        {
            var webContent = await _webContentDal.QueryByIdAsync(id);

            webContent.WebContentType = await _webContentTypeDal.QueryByIdAsync(webContent.WebContentTypeId);

            return(View(webContent));
        }
예제 #2
0
        // 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));
        }
예제 #3
0
        // 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));
        }