Esempio n. 1
0
        public ActionResult ReplySave(string category, string id, FormCollection collection)
        {
            var comment = collection[0];
            var from = collection[1];
            var r = new Reply();
            r.Create(comment, from, id, category);

            return Redirect("/Home/Index");
        }
Esempio n. 2
0
 public object Save(FormCollection collection)
 {
     var comment = collection[0];
     var from = collection[1];
     var day = collection[2];
     var category = collection[3];
     var r = new Reply();
     r.Create(comment, from, day, category);
     return Redirect("/");
 }