private bool LocationExists(int id)
 {
     return(_locationsRepository.Any(id));
 }