public bool CanBeDeleted(int id)
 {
     return(repository.CanBeDeleted(id));
 }