public JobSeekerRegistrationResult RegisterJobSeeker(RegisterJobSeekerCommand command)
        {
            JobSeeker jobSeeker = new JobSeeker(command.Email, command.FirstName, command.LastName, false);
            JobSeekerRegistrationResult result = new JobSeekerRegistrationResult(jobSeeker);
            try
            {
                this._jobSeekerRegistrationService.Register(jobSeeker);
                this._jobSeekerRepository.Save(jobSeeker);
            } catch(Exception ex)
            {
                result.Error = ex;
            }

            return result;
        }
示例#2
0
        public JobSeekerRegistrationResult RegisterJobSeeker(RegisterJobSeekerCommand command)
        {
            JobSeeker jobSeeker = new JobSeeker(command.Email, command.FirstName, command.LastName, false);
            JobSeekerRegistrationResult result = new JobSeekerRegistrationResult(jobSeeker);

            try
            {
                this._jobSeekerRegistrationService.Register(jobSeeker);
                this._jobSeekerRepository.Save(jobSeeker);
            } catch (Exception ex)
            {
                result.Error = ex;
            }

            return(result);
        }
 public ActionResult Register(RegisterJobSeekerCommand model)
 {
     this._jobSeekerRegistrationService.RegisterJobSeeker(model);
     return View(model);
 }
 public ActionResult Register()
 {
     RegisterJobSeekerCommand model = new RegisterJobSeekerCommand(String.Empty, String.Empty, String.Empty);
     return View(model);
 }
示例#5
0
 public ActionResult Register(RegisterJobSeekerCommand model)
 {
     this._jobSeekerRegistrationService.RegisterJobSeeker(model);
     return(View(model));
 }
示例#6
0
        public ActionResult Register()
        {
            RegisterJobSeekerCommand model = new RegisterJobSeekerCommand(String.Empty, String.Empty, String.Empty);

            return(View(model));
        }