Exemple #1
0
        public async Task <IActionResult> ActivateAccount(string id)
        {
            var user = await _userServices.GetUserByEmailActiveCode(id);

            if (user != null)
            {
                _userServices.ActiveUser(user);
                return(JsonResponseStatus.Success(new { message = $"{user.FirstName} عزیز خوش آمدید!" }));
            }

            return(JsonResponseStatus.NotFound());
        }