Пример #1
0
 public ClientService(
     UserEntityRepository <Client, ClientAccount> repo,
     CrudService <User, PrivateClient> userService,
     AccountService <ClientAccount, ClientAccountDTO> accountService,
     CommercialLinkService clService,
     RelatedToBothService <Purchase, PurchaseDTO> purchaseService,
     Credentials credentials,
     ClientOfferService clientOfferService
     ) : base(repo, userService, accountService, clService, purchaseService, credentials)
 {
     ClientOfferService     = clientOfferService;
     NotRequiredForSaving   = new string[] { "AdminPassword" };
     NotRequiredForUpdating = new string[] { "AdminPassword" };
 }
Пример #2
0
 public TraderService(
     UserEntityRepository <Trader, TraderAccount> repo,
     CrudService <User, PrivateTrader> userService,
     AccountService <TraderAccount, TraderAccountDTO> accountService,
     CommercialLinkService clService,
     RelatedToBothService <Purchase, PurchaseDTO> purchaseService,
     Credentials credentials,
     OfferService offerService
     ) : base(repo, userService, accountService, clService, purchaseService, credentials)
 {
     OfferService           = offerService;
     NotRequiredForSaving   = new string[] { "Address", "Phone", "LogoPath" };
     NotRequiredForUpdating = new string[] { "Address", "Phone", "LogoPath" };
 }
Пример #3
0
 public UserEntityService(
     UserEntityRepository <TEntity, TAccount> repo,
     CrudService <User, TPrivate> userService,
     AccountService <TAccount, TAccountDTO> accountService,
     CommercialLinkService clService,
     RelatedToBothService <Purchase, PurchaseDTO> purchaseService,
     Credentials credentials
     ) : base(repo)
 {
     UserService           = userService;
     AccountService        = accountService;
     ClService             = clService;
     PurchaseService       = purchaseService;
     Credentials           = credentials;
     SeekReferences        = repo.SeekReferences;
     UnexpectedForSaving   = new string[] { "Id", "CreationTime" };
     UnexpectedForUpdating = new string[] { "Id", "CreationTime" };
 }