コード例 #1
0
        public ActionResult Delete(int id)
        {
            SubCategory subCategory = productionService.GetSubCategory(id);

            if (subCategory != null)
            {
                productionService.RemoveSubCategory(subCategory);
            }
            return(RedirectToAction("Index"));
        }