public T Add(T entity, long createdBy = 0) { entity.SetCreatedBy(createdBy); entity.SetCreateDateTime(); return(_context.Set <T>() .Add(entity) .Entity); }
public T Add(T entity, long createdBy = 0) { entity.SetCreatedBy(createdBy); entity.SetCreateDateTime(); return(_context.Set <T>() .Add(entity) .Entity); }