コード例 #1
0
        public ActionResult AddSuggestionForm(Suggestion suggestion)
        {
            var ops = new SuggestionOperations();
            ops.AddSuggestion(suggestion);

            return View("ConfirmationPage");
        }
コード例 #2
0
 public ActionResult ViewSuggestions()
 {
     var ops = new SuggestionOperations();
     var response = ops.DisplaySuggestions();
     return View(response);
 }
コード例 #3
0
 public ActionResult DeleteSuggestion(int suggestionID)
 {
     var ops = new SuggestionOperations();
     ops.DeleteSuggestions(suggestionID);
     return RedirectToAction("ViewSuggestions");
 }