Example #1
0
        public ActionResult AddSuggestionForm(Suggestion suggestion)
        {
            var ops = new SuggestionOperations();
            ops.AddSuggestion(suggestion);

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