Esempio n. 1
0
 public ActionResult SelectUserRecruitmentAgent(SelectDeleteRecruitmentAgentViewModel recruitmentAgentViewModel)
 {
     ViewBag.RecruitmentAgentIdList = GetRecrutimentAgentIds();
     ViewBag.JobsIdList             = GetJobIds();
     ViewBag.AddressIdList          = GetAddressIds();
     if (ModelState.IsValid)
     {
         var mapper = AutoMapperConfig.Configure();
         ModelState.Clear();
         RecruitmentAgency recruitmentAgencies = _repositoryEndPointService.GetRecruitmentAgencyById(recruitmentAgentViewModel.RecruitmentAgencyId);
         recruitmentAgentViewModel = mapper.Map <RecruitmentAgency, SelectDeleteRecruitmentAgentViewModel>(recruitmentAgencies);
         return(View("SelectDeleteUserRecruitmentAgent ", recruitmentAgentViewModel));
     }
     return(View("SelectDeleteUserRecruitmentAgent ", recruitmentAgentViewModel));
 }