Beispiel #1
0
        public ActionResult CreateBroker(Member member)
        {
            if (ModelState.IsValid)
            {
                db.members.Add(member);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(member);
        }
Beispiel #2
0
        public ActionResult CreateAgent(Member member)
        {
            if (ModelState.IsValid)
            {
                db.members.Add(member);
                db.SaveChanges();
                //_repository.Add(member);
                //_unitOfWork.Commit();
                return RedirectToAction("Confirmation", member);
            }

            return View(member);
        }
Beispiel #3
0
 //Confirmation
 public ActionResult Confirmation(Member member)
 {
     return View(member);
 }