示例#1
0
        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);
        }
示例#2
0
        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);
        }
示例#3
0
        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);
        }