Example #1
0
        public override RolePermission GetFromCache(Guid id)
        {
            var item = base.GetFromCache(id);

            if (item != null)
            {
                return(item);
            }
            return(DefaultData.GetDefault(id));
        }
Example #2
0
        public override RolePermission Get(Guid id, bool getColumnDataOnly = false)
        {
            var item = base.Get(id, getColumnDataOnly);

            if (item != null)
            {
                return(item);
            }
            else
            {
                return(DefaultData.GetDefault(id));
            }
        }