Пример #1
0
 public void Delete(TEntity entity)
 {
     context.SetAsDeleted(entity);
 }
Пример #2
0
 /// <summary>
 /// Asynchronously delete an entity
 /// </summary>
 /// <param name="entity">The entity</param>
 /// <returns>a future to be handled by the caller</returns>
 public Task DeleteAsync(TEntity entity)
 {
     _dbContext.SetAsDeleted(entity);
     return(Task.FromResult <object>(null));
 }