public async Task <IActionResult> Copy([FromBody] CopyList dto) { if (dto == null) { return(BadRequest()); } try { dto.UserId = IdentityHelper.GetUserId(User); } catch (UnauthorizedAccessException) { return(Unauthorized()); } int id = await _listService.CopyAsync(dto, _copyValidator); return(StatusCode(201, id)); }