Example #1
0
 public ConsultaRespuesta Consultar()
 {
     try
     {
         return(new ConsultaRespuesta(liquidacionCuotaRepository.Consultar()));
     }
     catch (Exception e)
     {
         return(new ConsultaRespuesta("Lo sentimo se presento el sgt error " + e.Message));
     }
 }
        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);
        }
Example #3
0
 public static IList <LiquidacionCuotaModeradora> ConsultarTodos()
 {
     return(cuotaRepository.Consultar());
 }