async Task OnRowRemoving(CompanyUserInfo dataItem)
        {
            if (dataItem != null)
            {
                //Status = $"Đang xóa tài khoản {dataItem.UserId} ...";
                //StateHasChanged();

                string ret = await SPC.Cloud.Members.CompanyUser.DeleteCompanyUserAsync(dataItem.UserId, dataItem.CompanyId);

                if (!string.IsNullOrEmpty(ret))
                {
                    await SearchAsync();
                }
            }
            //await ForecastService.Remove(dataItem);
        }
        async Task OnRowUpdating(CompanyUserInfo dataItem, IDictionary <string, object> newValue)
        {
            if (dataItem != null && newValue != null && newValue.Count > 0)
            {
                Status = $"Cập nhật tài khoản {dataItem.UserId}";

                StateHasChanged();

                var itm = await SPC.Cloud.Members.CompanyUser.GetCompanyUserAsync(dataItem.UserId, dataItem.CompanyId);

                Dictionary <string, string> dic = CreateStringDic(newValue);

                BOFactory.ApplyPreset(itm, dic);

                await itm.SaveAndMergeAsync();

                await CompanyUser.CreateSubscriberIfNotExistsAsync(itm.CompanyId, itm.UserId, dic);

                await SearchAsync();
            }
            //await ForecastService.Update(dataItem, newValue);
        }