示例#1
0
        public async Task <ResponseModel <string> > RemovePayment(int paymentId)
        {
            ResponseModel <string> response = new ResponseModel <string>()
            {
                ResponseData = new List <string>()
            };

            if (await _dbRepo.RemovePayment(paymentId))
            {
                response.ResponseCode    = ReturnCodesConstant.R00;
                response.ResponseMessage = ReturnCodesConstant.PAYMENT_RECORD_REMOVED_SUCCESSFULLY;
                return(response);
            }
            else
            {
                response.ResponseCode    = ReturnCodesConstant.R05;
                response.ResponseMessage = ReturnCodesConstant.R05Message;
                return(response);
            }
        }