public async Task <AccreditationEntity> Add(AccreditationEntity pEntity) { await this.dbContext.Accreditations.AddAsync(pEntity); await this.dbContext.SaveChangesAsync(); return(pEntity); }
public async Task Delete(AccreditationEntity pEntity) { this.dbContext.Accreditations.Remove(pEntity); await this.dbContext.SaveChangesAsync(); }