Example #1
0
        public async Task <IActionResult> Create(CreateCVEmployeeInformationDto input)
        {
            var newCV = await _EmployeeAppService.CreateCVEmPloyeeInformationAsync(input);

            return(Ok(newCV));
        }
Example #2
0
        //  [AbpAuthorize(PermissionNames.Pages_Group6_Recruitment_Create)]
        public async Task <CVEmployeeInformationDto> CreateCVEmPloyeeInformationAsync(CreateCVEmployeeInformationDto input)
        {
            var cv = ObjectMapper.Map <CVEmployeeInformation>(input);

            cv = await _cvemployeeInformationRepo.InsertAsync(cv);

            await CurrentUnitOfWork.SaveChangesAsync();

            return(ObjectMapper.Map <CVEmployeeInformationDto>(cv));
        }