Ejemplo n.º 1
0
 public void SaveRight(as_rights item)
 {
     try {
         db.SaveRight(item);
     }catch (Exception ex) {
         RDL.Debug.LogError(ex);
     }
 }
Ejemplo n.º 2
0
 public void DeleteRight(as_rights item)
 {
     try
     {
         db.DeleteRight(item.id);
     }
     catch (Exception ex)
     {
         RDL.Debug.LogError(ex);
     }
 }
Ejemplo n.º 3
0
        public as_rights GetRight(int id)
        {
            var res = new as_rights();
            var key = "as_rights_id_" + id;

            if (CacheManager.EnableCaching && CacheManager.Cache[key] != null && false)
            {
                res = (as_rights)CacheManager.Cache[key];
            }
            else
            {
                try {
                    res = db.GetRight(id);
                    CacheManager.CacheData(key, res);
                }catch (Exception ex) {
                    Debug.LogError(ex);
                }
            }
            return(res);
        }