Пример #1
0
        public int GetResourceTypeIdByEntityName(string entityName)
        {
            var rt = ResourceTypes.FirstOrDefault(x => x.EntityName == entityName);

            return(rt != null ? rt.Id : 0);
        }