Esempio n. 1
0
        public ActionResult Index(string txtTagName, string txtUrl)
        {
            if (string.IsNullOrEmpty(txtTagName))
            {
                txtTagName = "UnKnown";
            }
            ViewBag.TagName = txtTagName;
            if (string.IsNullOrEmpty(txtUrl))
            {
                ViewBag.ControllerMessage = "Url Rejected";
                return(View());
            }

            ViewBag.ControllerMessage = DBAccess.AddDocument(txtUrl, txtTagName);

            return(View());
        }