public bool DetailExists(long id)
 {
     return(repository.DetailExists(id));
 }