public HttpResponseMessage <Land> UpdateStatusLand(Land land, HttpRequestMessage <Land> request) { var landDB = landRepository.GetLand(land.Id); if (landDB != null) { landRepository.UpdateLandStatus(land.Id, land.LandStatus); try { ImagesGeneratorTool.Run(landRepository, true, landDB.GeohexKey); } catch (Exception ex) { logger.Error("No se genero la imagen para la land " + landDB.Id.ToString()); } return(new HttpResponseMessage <Land>(land) { StatusCode = HttpStatusCode.OK }); } return(new HttpResponseMessage <Land>(HttpStatusCode.BadRequest)); }