public void Delete() { IsDeleted = true; var persistGrant = PersistGrants.Where(a => !a.IsRevoke).ToList(); foreach (var items in persistGrant) { items.Update(); } }
public void Add(string subjectId, string refreshToken, string ipAddress, DateTime expiredTime, UserType userType) { var persistGrants = new PersistGrants(subjectId, refreshToken, ipAddress, expiredTime, userType); _grantsList.Add(persistGrants); }
public void Add(PersistGrants persistGrants) { _applicationDbContext.PersistGrants.Add(persistGrants); }