public ActionResult Edit(int id, SugestoesProp updatesug) { try { si.editsug(updatesug); return(RedirectToAction("Index")); } catch { return(View()); } }
public ActionResult Create(SugestoesProp suginsert) { try { // TODO: Add insert logic here if (ModelState.IsValid) { if (si.insertsug(suginsert)) { ViewBag.message = "Record Save Successfully !"; ModelState.Clear(); } } return(RedirectToAction("Index")); } catch { return(View()); } }