public IHttpActionResult GetRoadConditions() { var webClient = new MessageWebService(); var result = webClient.GetRoadConditions(); if (result == null) { return NotFound(); } return Ok(result); }
public ActionResult RoadConditions() { var webClient = new MessageWebService(); var result = webClient.GetRoadConditions(); if (result == null) { return HttpNotFound(); } return Json(result, JsonRequestBehavior.AllowGet); }