public IActionResult GetContactsByCity(string city = null, string state = null) { List <Contact> contacts = _repo.GetAllContactsByCity(city, state); if (contacts.Any()) { return(Ok(contacts)); } else { return(NoContent()); } }