public HttpResponseMessage <List <Land> > GetLandByWkt(Earthwatcher earthwatcher, HttpRequestMessage <Earthwatcher> request) { if (earthwatcher != null && !string.IsNullOrEmpty(earthwatcher.Name)) { // todo: check if wkt is valid... // we can use SqlGeometry but there are some issues on Azure with that assembly // other option is do a spatial database query for this var landCollection = landRepository.GetLandByIntersect(earthwatcher.Name, earthwatcher.Id); return(new HttpResponseMessage <List <Land> >(landCollection) { StatusCode = HttpStatusCode.OK }); } return(new HttpResponseMessage <List <Land> >(null) { StatusCode = HttpStatusCode.BadRequest }); }