public ActionResult EchoNamedArgs(string text, DateTime date, Contact contact) { return Json(new { text, date, contact }); }
public ActionResult Update(Contact contact) { db.Entry(contact).State = EntityState.Modified; db.SaveChanges(); return Json(new { success = true, data = contact }); }