public async Task <ClaimsIdentity> GenerateUserIdentityAsync(UserManager <ApplicationUser> manager)
        {
            // Note the authenticationType must match the one defined in CookieAuthenticationOptions.AuthenticationType
            var userIdentity = await manager.CreateIdentityAsync(this, DefaultAuthenticationTypes.ApplicationCookie);

            // Add custom user claims here
            userIdentity.AddClaim(new Claim("HouseholdId", HouseholdId.ToString()));
            userIdentity.AddClaim(new Claim("FullName", FullName));
            userIdentity.AddClaim(new Claim("NegFormatId", NegFormatId.ToString()));
            userIdentity.AddClaim(new Claim("CultureId", CultureId.ToString()));
            foreach (var account in BankAccounts)
            {
                userIdentity.AddClaim(new Claim("BankAccount", account.Id.ToString()));
            }
            return(userIdentity);
        }
 public override string GetCacheKey()
 {
     return(string.Format("TranslationValKey_{0}_{1}", CultureId.ToString(), Key));
 }