示例#1
0
        // Just Test
        public async Task <IActionResult> Actived(String email)
        {
            using (var client = new HttpClient())
            {
                try
                {
                    String _result = await UserVM.ActiveUserAsync(client, email);

                    if (_result.Equals(ResultCode.DONE))
                    {
                        return(RedirectToAction("Active", "User"));
                    }
                    else
                    {
                        return(BadRequest(Lang.LANG_UPDATE_PROBLEM));
                    }
                }
                catch (Exception)
                {
                    return(BadRequest(Lang.LANG_CONNECTION_PROBLEM));
                }
            }
        }