public void DeleteEntity(int id)
 {
     repository.DeleteEntity(id);
 }