public Result <MFTransactions> Get(int id) { var result = new Result <MFTransactions>(); MFTransactionsService MFTransactionsService = new MFTransactionsService(); result.Value = MFTransactionsService.Get(id); result.IsSuccess = true; return(result); }
public Result <IList <MFTransactions> > GetAll(int plannerId) { var result = new Result <IList <MFTransactions> >(); MFTransactionsService MFTransactionsService = new MFTransactionsService(); result.Value = MFTransactionsService.GetAll(plannerId); result.IsSuccess = true; return(result); }
public Result Delete(MFTransactions mf) { var result = new Result(); try { MFTransactionsService MFTransactionsService = new MFTransactionsService(); MFTransactionsService.Delete(mf); result.IsSuccess = true; } catch (Exception exception) { result.IsSuccess = false; result.ExceptionInfo = exception; } return(result); }