Ejemplo n.º 1
0
 public static void Delete(this ComicTrackerDbContext dbContext, BaseDeletableModel <int> entity)
 {
     entity.IsDeleted = true;
     entity.DeletedOn = DateTime.UtcNow;
     dbContext.Update(entity);
 }
Ejemplo n.º 2
0
 public static void Undelete(this ComicTrackerDbContext dbContext, BaseDeletableModel <int> entity)
 {
     entity.IsDeleted = false;
     entity.DeletedOn = null;
     dbContext.Update(entity);
 }