示例#1
0
        public async Task <IActionResult> StartExport([FromRoute] long id)
        {
            var vacancy = await _resumeService.GetAsync(id);

            var dto = Mapper.Map <DtoVacancy>(vacancy);

            var   task = _exporter.ExportAsync(dto);
            await task;

            var guid = _storage.RegisterTask(task);

            return(Ok(guid));
        }