AspNetEmailExample.Models.IdentityManager.RoleExists C# (CSharp) Метод

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

public RoleExists ( string name ) : bool
name string
Результат bool
        public bool RoleExists(string name)
        {
            var rm = new RoleManager<IdentityRole>(
                new RoleStore<IdentityRole>(new ApplicationDbContext()));
            return rm.RoleExists(name);
        }