Exemple #1
0
        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);
            }
        }
Exemple #2
0
        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());
 }
Exemple #4
0
 public List <Liquidacion> Consulatar()
 {
     return(liquidacionRepository.Consultar());
 }