Exemplo n.º 1
0
        public async Task <IActionResult> Activate([FromBody] ActivateAccountRequest request)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            var result = await _usersService.ActivateAccountConfirm(request);

            if (!result.Success)
            {
                return(BadRequest(result));
            }

            return(Ok());
        }