示例#1
0
        public HttpResponseMessage GenerateTickets([FromBody] API.Payment payment)
        {
            T.Beneficiary beneficiary = TicketService.GetBeneficiary(payment.Beneficiary.Name);

            TicketService.GenerateTickets(payment.PaymentID, beneficiary.BeneficiaryID, payment.Amount, payment.Currency.ExchangeRate, payment.Name);
            return(Request.CreateResponse(HttpStatusCode.OK));
        }
示例#2
0
 public HttpResponseMessage EditPayment([FromBody] API.Payment payment)
 {
     Service.Edit(Mapper.Map <API.Payment, D.Payment>(payment));
     return(Request.CreateResponse(HttpStatusCode.OK));
 }
示例#3
0
 public HttpResponseMessage AddToMailQueue([FromBody] API.Payment payment)
 {
     MailQueueService.AddToQueue(new MailQueue(payment.PaymentID, payment.Email));
     return(Request.CreateResponse(HttpStatusCode.OK));
 }