public ActionResult Add(BrandModel model) { if (ModelState.IsValid) { int result = model.Add(model); if (result > 0) { return(RedirectToAction("Index")); } } return(View(model)); }
public ActionResult Add(BrandModel model) { if (ModelState.IsValid) { int result = model.Add(model); if (result > 0) { return(RedirectToAction("Index")); } } return(View(model)); }