Пример #1
0
 public ActionResult Update(Byod byod)
 {
     try
     {
         byod = _iFByod.Update(byod);
         return(RedirectToAction("Index", "Byod"));
     }
     catch (Exception ex)
     {
         return(View(byod));
     }
 }
Пример #2
0
        public ActionResult Update(Byod byod)
        {

            try
            {
                byod = _iFByod.Update(byod);

                return RedirectToAction("Index");
            }
            catch
            {
                return View(byod);
            }
        }