Пример #1
0
        public ActionResult Create(string email, string password)
        {
            var user = new Authenticator().Create(email, password);
            using (var session = MvcApplication.Store.OpenSession())
            {
                session.Store(user);
                session.SaveChanges();
            }

            ViewBag.Message = string.Format("Created {0}", email);
            return View("New");
        }
Пример #2
0
 public void SetUp()
 {
     _authenticator = new Authenticator();
 }