Ejemplo n.º 1
0
        public async Task <AccreditationEntity> Add(AccreditationEntity pEntity)
        {
            await this.dbContext.Accreditations.AddAsync(pEntity);

            await this.dbContext.SaveChangesAsync();

            return(pEntity);
        }
Ejemplo n.º 2
0
 public async Task Delete(AccreditationEntity pEntity)
 {
     this.dbContext.Accreditations.Remove(pEntity);
     await this.dbContext.SaveChangesAsync();
 }