private PersistedGrant ConvertCMGrant(CMGrantModel cmGrantModel) { return(new PersistedGrant { ClientId = cmGrantModel.ClientId, CreationTime = cmGrantModel.CreationTime, Data = cmGrantModel.Data, Expiration = cmGrantModel.Expiration, Key = cmGrantModel.Key, SubjectId = cmGrantModel.SubjectId, Type = cmGrantModel.Type }); }
public async Task StoreAsync(CMGrantModel grant) { await defaultCollection.InsertOneAsync(grant); }