public async Task <ActionResult <CreatePagamentoCommand> > Create(CreatePagamentoCommand command) { if (!ModelState.IsValid) { return(CustomResponse(ModelState)); } await _pagamentoService.Create(_mapper.Map <Pagamento>(command)); return(CustomResponse(command)); }