Exemple #1
0
 public IActionResult GetAll()
 {
     try
     {
         return(Ok(
                    new Response
         {
             IsSuccess = true,
             Data = _IConceptoPagoService.GetAll()
         }));
     }
     catch (Exception ex)
     {
         return(BadRequest(
                    new Response {
             IsSuccess = false,
             Message = $"No se pudo generar el listado >> {ex.Message}"
         }));
     }
 }
 public async Task <IList <ConceptoPago> > Get()
 {
     return(await _service.GetAll());
 }