public ActionResult AddNewTag(int postid, string tagName) //, string tagUrlSeo { var result = RedirectToAction("CategoriesAndTags", "Forum", new { Message = "TagExist" }); var CheckTag = _dbhelpers.FindTag(tagName); if (CheckTag == null) { if (postid != 0) //chech if tag with suck name already exists { _forumFunctions.AddNewTag(tagName); //, tagUrlSeo return(RedirectToAction("AddTagToPost", new { postid = postid })); } else { _forumFunctions.AddNewTag(tagName); //, tagUrlSeo return(RedirectToAction("CategoriesAndTags", "Forum")); } } else { return(result); } }