public async Task <IActionResult> Index() { var response = await _userApiService.List(); if (response.Success) { return(View(response.Data)); } else { ErrorAlert(response.Message); return(RedirectToAction("Index", "Home")); } }
public async Task <IActionResult> Index() { var response = await _userApiService.List(); if (response.Success) { return(View(response.Data)); } else { ErrorAlert(response.Message); return(RedirectToAction("Index", "Home")); } }