/// <summary> /// Method to search Term /// </summary> /// <param name="term">Search Term</param> /// <returns>HttpAction</returns> // GET api/Ticket/GetStation?term=param public IHttpActionResult GetStation([FromUri] string term) { try { if (ModelState.IsValid && !String.IsNullOrEmpty(term)) { var searchReturn = _stationService.FindTerm(term); return(Ok(searchReturn)); } else { return(BadRequest()); } } catch (Exception ex) { throw ex; } }