public async Task <InvokeResult> CreateOrgAsync([FromBody] CreateOrganizationViewModel orgVM)
        {
            var org = await _orgManager.CreateNewOrganizationAsync(orgVM, UserEntityHeader);

            await _signInManager.SignInAsync(await this.GetCurrentUserAsync());

            return(org);
        }
        public async Task <InvokeResult> CreateOrgAsync([FromBody] CreateOrganizationViewModel orgVM)
        {
            var org = await _orgManager.CreateNewOrganizationAsync(orgVM, UserEntityHeader);

            var currentUser = await this.GetCurrentUserAsync();

            if (currentUser == null)
            {
                throw new RecordNotFoundException("AppUser", UserEntityHeader.Id + $"{UserEntityHeader.Id}");
            }

            if (currentUser.OwnerOrganization == null)
            {
                await _signInManager.RefreshUserLoginAsync(currentUser);
            }

//            await _signInManager.SignInAsync(currentUser);
            return(org);
        }