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"); }
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("/"); }