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

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