예제 #1
0
 public IActionResult Get()
 {
     try
     {
         return(Ok(_formaPagamentoRepository.ObterTodos()));
     }
     catch (Exception ex)
     {
         return(BadRequest(ex.ToString()));
     }
 }
예제 #2
0
 public async Task <IEnumerable <FormaPagamentoViewModel> > ObterTodos()
 {
     return(_mapper.Map <IEnumerable <FormaPagamentoViewModel> >(await _formaPagamentoRepository.ObterTodos()));
 }
 public async Task <ResponseModel <FormaPagamento> > ObterTodos(PaginationFilter filter)
 {
     return(await _formaPagamentoRepository.ObterTodos(filter));
 }