public void SaveRight(as_rights item) { try { db.SaveRight(item); }catch (Exception ex) { RDL.Debug.LogError(ex); } }
public void DeleteRight(as_rights item) { try { db.DeleteRight(item.id); } catch (Exception ex) { RDL.Debug.LogError(ex); } }
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); }