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