private IEnumerable <Claim> LoadRoles(string login, string password) { IAuthentificationService ause = new AuthentificationService(); yield return(new Claim(ClaimTypes.Role, ause.getRoleFromLoginetPassword(login, password))); yield return(new Claim(ClaimTypes.Name, ause.getNameFromLoginAndPasswod(login, password))); yield return(new Claim(ClaimTypes.Email, ause.Authentification(login, password).e_mail)); yield return(new Claim(ClaimTypes.PrimarySid, ause.Authentification(login, password).id.ToString())); // yield return new Claim(ClaimTypes.Name, ause.Authentification(login, password).name); }