Cats.Models.Hubs.Role.RoleExists C# (CSharp) Метод

RoleExists() публичный статический Метод

public static RoleExists ( string name ) : bool
name string
Результат bool
        public static bool RoleExists(string name)
        {
            //CTSContext entities = new CTSContext();
            //var count = entities.Roles.Where(p => p.Name == name).Count();
            //return (count > 0);
            return true;
        }