Ejemplo n.º 1
0
        public SaveResult SubmitPayment(decimal paymentAmount, decimal balance, int studentPayTransactionId, int submitById)
        {
            try
            {
                var result = _context.proc_PayTransaction_SubmitPay(studentPayTransactionId, paymentAmount, balance, submitById);


                return(new SaveResult
                {
                    Id = studentPayTransactionId,
                    Status = "OK",
                    Message = "Pay Transaction was saved successfully!"
                });
            }
            catch (Exception ex)
            {
                return(new SaveResult
                {
                    Status = "ERROR",
                    Message = "Error on SubmitPayment method. " + ex.InnerException != null ? ex.InnerException.Message : ex.Message
                });
            }
        }