public async Task <Response <UserDTO> > SetEmail([FromBody] UserSetEmailDTO dto) { return(await _handler.ChangeEmailConfirm(dto?.Code, User)); }
public async Task <Response <UserDTO> > ChangeEmailConfirm(UserSetEmailDTO dto, ClaimsPrincipal claims) { var result = await _service.ChangeEmailConfirm(claims.GetUserId(), dto.Code); return(result); }