예제 #1
0
        public ActionResult Delete(Catalog catalog)
        {
            if (ModelState.IsValid)
            {
                if (_catalogManager.Delete(catalog))
                {
                    ViewBag.SuccesMsg = "Deleted";
                }
                else
                {
                    ViewBag.FailedMsg = "Failed";
                }
            }
            else
            {
                ViewBag.FailedMsg = "VAlidation Failed";
            }

            return(View(catalog));
        }