private async Task CheckSubDomain() { if (this.SubDomain == null || this.SubDomain.Id == null || this.SubDomain.Id == Guid.Empty) { this.SubDomain = SubDomainService.GetFirst(s => s.Website.Id == this.Website.Id && s.Domain == this.SubDomain.Domain); } }
private async Task SaveSubDomain() { var subDomain = new SubDomain(); subDomain.Domain = this.ParsedWebpage.SubDomain; subDomain.WebsiteId = Website.Id; subDomain.Website = this.Website; this.SubDomain = await SubDomainService.Add(subDomain); }