Exemplo n.º 1
0
        public ActionResult CategoryDelete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            var      categoryService = new CategoryLogic();
            Category category        = categoryService.FindCategory(id);

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