public ActionResult UpdateSailboat(BoatPO form) { ActionResult oresponse = null; try { if (ModelState.IsValid) { BoatDO dataObject = BoatMap1.BoatPOtoDO(form); _boatDataAccess.UpdateSailboats(dataObject); oresponse = RedirectToAction("ViewSailboats", "Boat"); } else { oresponse = View(form); } } catch (Exception ex) { logger.Log("Fatal", ex.Source, ex.TargetSite.ToString(), ex.Message, ex.StackTrace); } finally { } return(oresponse); }