public Result <IList <ReportPageSetting> > GetAll() { var result = new Result <IList <ReportPageSetting> >(); ReportPageSettingService reportPageSettingService = new ReportPageSettingService(); var reportPageSettings = reportPageSettingService.Get(); result.Value = (IList <ReportPageSetting>)reportPageSettings; result.IsSuccess = true; return(result); }
public Result Update(ReportPageSetting reportPageSetting) { var result = new Result(); try { ReportPageSettingService bankService = new ReportPageSettingService(); bankService.Update(reportPageSetting); result.IsSuccess = true; } catch (Exception exception) { result.IsSuccess = false; result.ExceptionInfo = exception; } return(result); }