public async Task <IActionResult> Active() { if (HttpContext.Session.GetString("Admin") == null || HttpContext.Session.GetString("Admin") == String.Empty) { return(RedirectToAction("Login", "Admin")); } using (var client = new HttpClient()) { try { return(View(await UserVM.GetAllUserActiveAsync(client))); } catch (Exception) { return(BadRequest(Lang.LANG_CONNECTION_PROBLEM)); } } }