public ActionResult Add(Catalog catalog) { if (ModelState.IsValid) { if (_catalogManager.Add(catalog)) { ViewBag.SuccesMsg = "Saved"; } else { ViewBag.FailedMsg = "Failed"; } } else { ViewBag.FailedMsg = "VAlidation Failed"; } return(View()); }
public ActionResult Add(Catalog catalog) { if (ModelState.IsValid) { if (_catalogManager.Add(catalog)) { ViewBag.SuccesMsg = "Saved"; } else { ViewBag.FailedMsg = "Failed"; } } else { ViewBag.FailedMsg = "VAlidation Failed"; } return(View()); }