Exemple #1
0
 public List <CLIENTE> GetByFilter(int?COMUNAId = null, int?CONVENIOId = null, int?TIPO_PRESTACIONId = null, int?TIPO_FACTURAId = null, string RUT = "", string NOMBRE = "", int?DESCUENTO = null, string DIRECCION = "", string FONO = "", string GIRO = "")
 {
     Init();
     try
     {
         using (LQCEEntities context = new LQCEEntities())
         {
             RepositorioCLIENTE repositorio = new RepositorioCLIENTE(context);
             return(repositorio.GetByFilter(COMUNAId, CONVENIOId, TIPO_PRESTACIONId, TIPO_FACTURAId, RUT, NOMBRE, DESCUENTO, DIRECCION, FONO, GIRO).OrderBy(i => i.ID).ToList());
         }
     }
     catch (Exception ex)
     {
         ISException.RegisterExcepcion(ex);
         Error = ex.Message;
         throw ex;
     }
 }