コード例 #1
0
        // GET: /Admin/Category/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Category category = objCategoryBO.GetCategory(id.Value);

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