public ActionResult Op() { for (int i = 0; i < 50; i++) { var user = new User { Name = "ayende", Email = "abc" }; NHibernateSession.Save(user); } return Json(new {}); }
public ActionResult New() { var user = new User { Name = "ayende", Email = "*****@*****.**" }; NHibernateSession.Save(user); NHibernateSession.Save(new Note { Owner = user, Content = "Got a cold" }); return Json(new {Create = true}); }