/// <inheritdoc /> public virtual void Delete(int id) { using (new EfUnitOfWorkFactory().Create(_context)) { _repository.Remove(id); } }