DRMFSS.BLL.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);
        }