Example #1
0
        public IActionResult LondonForm(string districtName, string content)
        {
            var database = new DatabaseUtility();
            var username = User.Identity.Name;
            var userId   = database.GetUserId(username);

            database.AddAComment(districtName, userId, content);

            return(RedirectToAction("Index", "Home"));
        }