Example #1
0
 public ActionResult SuggestTags(SuggestionViewModel model)
 {
     var suggestedTags = GetCommand<SearchTagsCommand>().ExecuteCommand(model);
     return Json(new { suggestions = suggestedTags });
 }
        public ActionResult SuggestUsers(SuggestionViewModel model)
        {
            var suggestedRoles = GetCommand<SearchUsersCommand>().ExecuteCommand(model);

            return Json(new { suggestions = suggestedRoles });
        }
        public ActionResult SuggestLanguages(SuggestionViewModel model)
        {
            var suggestedLanguages = GetCommand<SuggestLanguagesCommand>().ExecuteCommand(model);

            return Json(new { suggestions = suggestedLanguages });
        }
        public ActionResult SuggestSupplier(SuggestionViewModel model)
        {
            var suppliers = GetCommand<SuggestSupplierCommand>().ExecuteCommand(model);

            return Json(new { suggestions = suppliers });
        }