コード例 #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 IgnoreWord(Int32 id)
        {
            Nullable <Int32> informationTypeID = InformationTypeDAC.GetInformationTypeIDByWordID(id);

            RelevantWordDTO relevantWord = WordDAC.GetRelevantWord(id);

            if (relevantWord != null)
            {
                WordDAC.StoreIrrelevantWord(relevantWord.Word, ContextManager.Current.SelectedAreaID.Value);
            }

            WordDAC.DeleteRelevantWord(id);

            if (informationTypeID.HasValue)
            {
                return(Details(informationTypeID.Value));
            }
            else
            {
                return(View("Index"));
            }
        }