示例#1
0
        public CEM guardarCEM(CEM cem)
        {
            try
            {
                List <Object> c = UTILS.POST("private/cem", "cem", AuthUser.token, cem.GetType(), cem);

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

                return((CEM)c[0]);
            }
            catch (Exception)
            {
                return(null);
            }
        }
示例#2
0
 public List <object> getCEM()
 {
     try
     {
         CEM           cem    = new CEM();
         List <object> lstCEM = UTILS.GET("private/cem", "cem", AuthUser.token, cem.GetType());
         if (lstCEM == null || lstCEM.Count == 0)
         {
             return(null);
         }
         return(lstCEM);
     } catch (Exception)
     {
         return(null);
     }
 }