public Result LevelUpdate(Level oLevel) { Result oResult = new Result(); try { LevelDAO oLevelDAO = new LevelDAO(); oResult = oLevelDAO.LevelUpdate(oLevel); } catch (Exception oEx) { oResult.ResultIsSuccess = false; oResult.ResultException = oEx; oResult.ResultMessage = "Exception occured during Level Update.."; } return oResult; }
public Result LoadAllLevels() { Result oResult = new Result(); try { LevelDAO oLevelDAO = new LevelDAO(); oResult = oLevelDAO.LoadAllLevels(); } catch (Exception oEx) { oResult.ResultIsSuccess = false; oResult.ResultException = oEx; oResult.ResultMessage = "Exception occured during Load All Levels.."; } return oResult; }