Example #1
0
        public RecruiterUser MapToRecruiterUser(RecruiterModel recruiterModel)
        {
            var recruiter = new RecruiterUser()
            {
                CompanyDescription = recruiterModel.CompanyDescription,
                CompanyName = recruiterModel.CompanyName,

            };
            return recruiter;
        }
Example #2
0
 public RecruiterViewModel MapToRecruiterViewModel(RecruiterModel recruiterModel, string recruiterName, string recruiterEmail)
 {
     return new RecruiterViewModel(recruiterModel, recruiterName, recruiterEmail);
 }
Example #3
0
 public RecruiterModel MapToRecruiterModel(RecruiterUser recruiter)
 {
     var recruiterModel = new RecruiterModel(recruiter.CompanyName, recruiter.CompanyDescription);
     return recruiterModel;
 }
 public async Task UpdateRecruiterModelAsync(RecruiterModel model, string recruiterId)
 {
     var recruiter = _mappingService.MapToRecruiterUser(model);
     await _dbService.UpdateRecruiterAsync(recruiter, recruiterId);
 }
 public async Task<RecruiterViewModel> GetRecruiterViewModelByIdAsync(RecruiterModel recruiterModel, string recruiterId)
 {
     var recruiter = await _dbService.GetRecruiterByIdAsync(recruiterId);
     var recruiterViewModel = _mappingService.MapToRecruiterViewModel(recruiterModel, recruiter.Name, recruiter.Email);
     return recruiterViewModel;
 }
 public RecruiterViewModel(RecruiterModel recruiter, string name, string email)
 {
     Recruiter = recruiter;
     Name = name;
     Email = email;
 }
 public async Task<ActionResult> Index(RecruiterModel model)
 {
     var currentUserId = _authenticationService.GetUserIdFromRequest(Request);
     await _applicationService.UpdateRecruiterModelAsync(model, currentUserId);
     return RedirectToAction("Index", "Home");
 }