Esempio n. 1
0
        public async Task SubmitAsync()
        {
            var success = await _siteService.CreateSiteAsync(new Site
            {
                BusinessId    = BusinessId,
                Name          = Name,
                AddressLine1  = AddressLine1,
                AddressLine2  = AddressLine2,
                PostCode      = PostCode,
                FirstName     = FirstName,
                SecondName    = SecondName,
                Email         = Email,
                ContactNumber = ContactNumber
            });

            if (success)
            {
                _navigationManager.NavigateTo($"/business-profile/{BusinessId.ToString()}");
            }
        }