public List <Agency> GetAllAgenciesByCity(string city) { if (string.IsNullOrEmpty(city)) { return(_repository.GetAllAgencies()); } else { return(_repository.GetAllAgenciesByCity(city)); } }