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

            return(result);
        }