public bool CreateWebsite(EwhWebsite ewhWebsite) { if (!CheckValidWebsite(ewhWebsite)) { return(false); } ewhWebsite.Create(); return(true); }
public bool CreateWebsite(CreateWebsiteDto dto) { var ewhWebsite = new EwhWebsite(_websiteRepository, _accountRepository, _ewhMapper, _entityFactory); ewhMapper.ToEntity(ewhWebsite, dto); ewhWebsite.WebsiteType = WebsiteTypes.Free.ToString(); var check = false; // create website if (ewhWebsite.Create()) { check = true; ewhWebsite.InitGogSource(); EwhWebsiteAdded = ewhWebsite; } SyncStatus(this, ewhWebsite); return(check); }