public ActionResult ViewSailboats() { List <BoatDO> allSailboats = _boatDataAccess.ViewSailboats(); List <BoatPO> mappedBoats = new List <BoatPO>(); try { foreach (BoatDO dataObject in allSailboats) { mappedBoats.Add(BoatMap1.BoatDOtoBoatPO(dataObject)); } } catch (Exception ex) { logger.Log("Fatal", ex.Source, ex.TargetSite.ToString(), ex.Message, ex.StackTrace); } finally { } return(View(mappedBoats)); }