示例#1
0
 public ActionResult IgnoreWord(String id)
 {
     WordDAC.StoreIrrelevantWord(HttpUtility.UrlDecode(id), ContextManager.Current.SelectedAreaID.Value);
     return(View("Index", new WordIndexModel {
         WordHeaders = WordDAC.GetAllRelevantWords(ContextManager.Current.SelectedAreaID.Value)
     }));
 }
示例#2
0
 public ActionResult Index()
 {
     return(View(new WordIndexModel()
     {
         WordHeaders = WordDAC.GetAllRelevantWords(ContextManager.Current.SelectedAreaID.Value)
     }));
 }
示例#3
0
 public ActionResult Search(String searchText, Nullable <bool> showIgnoredWords)
 {
     if (showIgnoredWords.HasValue && (showIgnoredWords.Value == true))
     {
         return(View("WordListControl", new WordIndexModel()
         {
             ShowIgnoredWords = true,
             WordHeaders = WordDAC.GetIgnoredWords(ContextManager.Current.SelectedAreaID.Value, searchText)
         }));
     }
     else
     {
         return(View("WordListControl", new WordIndexModel()
         {
             ShowIgnoredWords = false,
             WordHeaders = WordDAC.GetAllRelevantWords(ContextManager.Current.SelectedAreaID.Value, searchText)
         }));
     }
 }