public PhrasesView() { InitializeComponent(); // Set the options by mapping each string page to a GazeButtonData page PagedMenu.Options = _phraseService.GetPhrases() .Select(item => GazeButtonData.FromStringArray(item)) .ToList(); }
public ActionResult Query(string value, bool skip = false) { var deviceId = GetDeviceId(); var accountId = GetAccountId(); var response = new SearchResponseModel(value); try { response.Phrases = _phraseService.GetPhrases(value, deviceId, accountId, skip); response.Success = true; } catch (SoapException e) { response.SetError(e); } catch (Exception e) { response.SetError(e); } return(Json(response, JsonRequestBehavior.AllowGet)); }