示例#1
0
        // GET: Comments/Details/5
        public async Task <ActionResult> Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Comment comment = await _commentDal.QueryByIdAsync(id);

            if (comment == null)
            {
                return(HttpNotFound());
            }
            return(View(comment));
        }