Beispiel #1
0
 public IHttpActionResult Get(string countryName)
 {
     if (string.IsNullOrEmpty(countryName))
     {
         return(BadRequest("Country Name is missing"));
     }
     else
     {
         return(Ok(_repository.GetRepository(ControllerContext.Request.Headers.Contains("USE-MOCK")).GetCitiesByCountry(countryName)));
     }
 }