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)); }