public async Task <IActionResult> ObterTodos([FromQuery] PaginationFilter filter) { return(Ok(ResponseHandler <FormaPagamento, FormaPagamentoViewModel>(await _formaPagamentoService.ObterTodos(filter), filter))); }
public ActionResult <IEnumerable <FormaPagamento> > Get() { return(new ActionResult <IEnumerable <FormaPagamento> >(_service.ObterTodos())); }