public static SuggestionModel GenerateModel() { SuggestionModel model = new SuggestionModel(); //model.InputValue = inputValue; //model.SuggestionKey = (SuggestionKeys)Enum.Parse(typeof(SuggestionKeys), key); return model; }
public static void InitModel(SuggestionModel model,string inputValue, string key) { model.InputValue = inputValue; model.SuggestionKey = (SuggestionKeys)Enum.Parse(typeof(SuggestionKeys), key); }
public ActionResult MakeSuggestion(SuggestionModel model) { this.ModelState.Clear(); if (model.SuggestionValues.Count == 0) return new EmptyResult(); //Content(string.Empty); return PartialView("MakeSuggestion", model); }