public async Task <IActionResult> OnPostChanageStatusAsync(string Id) { if (!User.IsInRole(Roles.CanChangeUsersStatus)) { return(_MsgBox.FaildMsg(_Localizer["AccessDenied"])); } var Result = await _UsersApplication.ChangeUserStatusAsync(Id, User.GetUserDetails().UserId); if (Result.IsSucceeded) { return(_MsgBox.SuccessMsg(_Localizer[Result.Message], "RefreshData()")); } else { return(_MsgBox.FaildMsg(_Localizer[Result.Message])); } }