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