コード例 #1
0
        public ActionResult Create(EmployerCreate employer)
        {
            if (ModelState.IsValid)
            {
                _userId          = User.Identity.GetUserId();
                _employerService = new EmployerService(_userId);
                _employerService.CreateEmployer(employer);
                return(RedirectToAction("Index"));
            }

            return(View(employer));
        }