Пример #1
0
 public IHttpActionResult Post(Pagamento pagamento)
 {
     _pagamentoService.ValidarPagamento(pagamento);
     if (_notification.HasNotification())
     {
         return(Content(HttpStatusCode.BadRequest, _notification.GetNotification()));
     }
     _pagamentoRepository.InserirPagamento(pagamento);
     return(Ok());
 }