public ActionResult Update(Byod byod) { try { byod = _iFByod.Update(byod); return(RedirectToAction("Index", "Byod")); } catch (Exception ex) { return(View(byod)); } }
public ActionResult Update(Byod byod) { try { byod = _iFByod.Update(byod); return RedirectToAction("Index"); } catch { return View(byod); } }