示例#1
0
        public ActionResult Edit(int?Id)
        {
            if (Id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }

            Category category = Handler.GetCategory(Id);

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