public virtual ActionResult Edit(QuoteModel model) { if (ModelState.IsValid) { Status status; if (model.Update(out status)) ModelState.AddModelError("Error", "User information updated successfully!"); else ModelState.AddModelError("Error", status.Message()); } else { ModelState.AddModelError("Error", "Please update the required fields!"); } return View(model); }
public virtual ActionResult Edit(QuoteModel model) { if (ModelState.IsValid) { Status status; if (model.Update(out status)) { ModelState.AddModelError("Error", "User information updated successfully!"); } else { ModelState.AddModelError("Error", status.Message()); } } else { ModelState.AddModelError("Error", "Please update the required fields!"); } return(View(model)); }