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)); }
public HttpResponseMessage EditPayment([FromBody] API.Payment payment) { Service.Edit(Mapper.Map <API.Payment, D.Payment>(payment)); return(Request.CreateResponse(HttpStatusCode.OK)); }
public HttpResponseMessage AddToMailQueue([FromBody] API.Payment payment) { MailQueueService.AddToQueue(new MailQueue(payment.PaymentID, payment.Email)); return(Request.CreateResponse(HttpStatusCode.OK)); }