public void AddFeedback(Feedback feedback) { var path = GetPath("feedback.txt"); using (var sw = new StreamWriter(path, true)) { sw.WriteLine(feedback.ToString()); } }
public ActionResult FeedbackForm(Feedback info) { var model = new FileDataRepository(); model.AddFeedback(info); return View("FeedbackResult", info); }
//GET: /Statistics/FeedbackForm public ActionResult FeedbackForm() { ViewBag.LinkCss = LinkHelper.GenerateLinkClass("FeedbackForm"); var model = new Feedback(); return View(model); }