public void Delete(int id)
 {
     _repository.Delete(x => x.Id == id);
 }