示例#1
0
        public EwhWebsite GetEwhWebsite(string id)
        {
            var website = _websiteRepository.Get(id);

            if (website == null)
            {
                EwhStatus = core.Enums.GlobalStatus.NotFound;
                return(null);
            }
            return(new EwhWebsite(website, _websiteRepository, _accountRepository, _ewhMapper, _entityFactory));
        }
示例#2
0
 public EwhWebsite(string websiteId, IWebsiteRepository websiteRepository, IAccountRepository accountRepository, Lazy <IEwhMapper> ewhMapper, Lazy <IEntityFactory> entityFactory) : this(websiteRepository, accountRepository, ewhMapper, entityFactory)
 {
     _website = _websiteRepository.Get(websiteId);
     MapFrom(_website);
 }
 public EwhWebsite Get(string id)
 {
     return(new EwhWebsite(_websiteRepository.Get(id), _websiteRepository, _accountRepository, _ewhMapper));
 }