public Task <T> Update(T entity) { ValidarEntidadNula <T> .IsNullEntity(entity); _entities.Attach(entity); _entities.Update(entity); return(Task.FromResult(entity)); }
public Task <bool> DeleteAsync(T entity) { ValidarEntidadNula <T> .IsNullEntity(entity); _entities.Attach(entity); _entities.Remove(entity); return(Task.FromResult(true)); }
public async Task <T> AddAsync(T entity) { ValidarEntidadNula <T> .IsNullEntity(entity); await _entities.AddAsync(entity).ConfigureAwait(false); return(entity); }