Ejemplo n.º 1
0
        public ApplicantViewModel SaveApplicant(ApplicantViewModel model)
        {
            var applicant          = _mapper.Map <ApplicantViewModel, Applicant>(model);
            var result             = _applicantRepository.SaveApplicantInfo(applicant);
            var applicantViewModel = _mapper.Map <Applicant, ApplicantViewModel>(result);

            return(applicantViewModel);
        }