Exemplo n.º 1
0
        public IActionResult AddingTag([FromForm(Name = "Url")] string newTag, int questionId, string Url_i)
        {
            if (newTag == null || newTag == "")
            {
                newTag = Url_i;
            }

            if (!_datahandler.TagAlreadyOrdered(questionId, newTag))
            {
                _datahandler.AddTag(questionId, newTag);
            }
            return(Redirect($"../AnswersForQuestion/{questionId}"));
        }