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) })); }
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")); } }