コード例 #1
0
        public ActionResult DeleteRelevantWord(Int32 id)
        {
            Nullable <Int32> informationTypeID = InformationTypeDAC.GetInformationTypeIDByWordID(id);

            WordDAC.DeleteRelevantWord(id);

            if (informationTypeID.HasValue)
            {
                return(Details(informationTypeID.Value));
            }
            else
            {
                return(View("Index"));
            }
        }
コード例 #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"));
            }
        }