public RespuestaConsultar Consultar() { RespuestaConsultar respuesta = new RespuestaConsultar(); try { respuesta.liquidaciones = liquidacionRepository.Consultar(); respuesta.Mensaje = "Se ha consultado correctamente"; return(respuesta); } catch (Exception e) { respuesta.Mensaje = "Error en el archivo" + e.Message; return(respuesta); } }
public RespuestaConsulta ConsultarConsultaGeneral() { RespuestaConsulta respuesta = new RespuestaConsulta(); try { respuesta.Error = false; respuesta.liquidaciones = cuotaRepository.Consultar(); if (respuesta.liquidaciones != null) { respuesta.Mensaje = "LISTADO DE LIQUIDACIONES"; } else { respuesta.Mensaje = "NO HAY DATOS"; } } catch (Exception e) { respuesta.Error = true; respuesta.Mensaje = $"ERROR" + e.Message; } return(respuesta); }
public List <Bebida> Consultar() { return(liquidacionRepository.Consultar()); }
public List <Liquidacion> Consulatar() { return(liquidacionRepository.Consultar()); }