Esempio n. 1
0
        public ActionResult Create(FormModels.Register.Promouter model)
        {
            if (ModelState.IsValid)
            {
                //salt
                model.Password = Password.MakePassword(model.Password, DateTime.UtcNow);
                var binder = new RegisterPromouterToUsers();
                var entry  = new PromouterUser();
                binder.Load(model, entry);

                DataAccessLayer.Create <UserBase>(entry, new SeoEntry());
                DataAccessLayer.DbContext.SaveChanges();

                return(RedirectToAction("Detail", new { id = entry.Id }));
            }

            return(View(model));
        }
        public ActionResult Create()
        {
            var model = new FormModels.Register.Promouter();

            return View();
        }
Esempio n. 3
0
        public ActionResult Create()
        {
            var model = new FormModels.Register.Promouter();

            return(View());
        }