public virtual void Update(ApplicationClaim entity) { if (entity != null) { this.Context.Entry <ApplicationClaim>(entity).State = EntityState.Modified; } }
public virtual void Delete(ApplicationClaim claim) { this.ThrowIfDisposed(); if (claim == null) { throw new ArgumentNullException("claim"); } this._claimStore.Delete(claim); this.Context.SaveChanges(); }
public virtual async Task DeleteAsync(ApplicationClaim claim) { this.ThrowIfDisposed(); if (claim == null) { throw new ArgumentNullException("claim"); } this._claimStore.Delete(claim); await this.Context.SaveChangesAsync(); }
public IdentityResult CreateGroup(ApplicationClaim claim) { _claimStore.Create(claim); return(IdentityResult.Success); }
public async Task <IdentityResult> CreateGroupAsync(ApplicationClaim claim) { await _claimStore.CreateAsync(claim); return(IdentityResult.Success); }
public async Task <IdentityResult> UpdateClaimAsync(ApplicationClaim claim) { await _claimStore.UpdateAsync(claim); return(IdentityResult.Success); }
public void Delete(ApplicationClaim entity) { this.DbEntitySet.Remove(entity); }
public void Create(ApplicationClaim entity) { this.DbEntitySet.Add(entity); }