Exemple #1
0
        public CEL guardarCEL(CEL cel)
        {
            try
            {
                List <Object> c = UTILS.POST("private/cel", "cel", AuthUser.token, cel.GetType(), cel);

                if (c == null || c.Count == 0)
                {
                    return(null);
                }

                return((CEL)c[0]);
            } catch (Exception)
            {
                return(null);
            }
        }
Exemple #2
0
 public List <object> getCELS()
 {
     try
     {
         CEL           cel    = new CEL();
         List <object> lstCEL = UTILS.GET("private/cel", "cel", AuthUser.token, cel.GetType());
         if (lstCEL == null || lstCEL.Count == 0)
         {
             return(null);
         }
         return(lstCEL);
     } catch (Exception)
     {
         return(null);
     }
 }