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 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); }
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)); }