Beispiel #1
0
        public ActionResult DeleteProductType(int id)
        {
            try
            {
                bool result = po.DeleteProductType(id);
                if (result == true)
                {
                    ViewBag.Message = "Category Deleted Successfully";
                    ModelState.Clear();
                }
                else
                {
                    ViewBag.Message = " Something went wrong. ";
                    ModelState.Clear();
                }

                return(RedirectToAction("Index"));
            }
            catch
            {
                throw;
            }
        }