public IdentityService(IWeddingBiddersUow uow, IEncryptionService encryptionService, ISessionService sessionService, ICacheProvider cacheProvider)
     : base(cacheProvider)
 {
     this.uow = uow;
     this.sessionService = sessionService;
     this.encryptionService = encryptionService;
 }
 public HtmlContentController(IWeddingBiddersUow uow)
 {
 }
 public AccountService(IWeddingBiddersUow uow, IConfigurationProvider configurationProvider)
 {
     this.uow = uow;
     this.stripeConfiguration = configurationProvider.Get<IStripeConfiguration>();
 }
 public ConversationController(IWeddingBiddersUow uow)
 {
     this.repository = uow.Conversations;
 }
 public SecurityService(IEncryptionService encryptionService, IWeddingBiddersUow uow, ICacheProvider cacheProvider)
     : base(cacheProvider)
 {
     this.uow = uow;
     this.encryptionService = encryptionService;
 }
 public BidController(IBidHub bidHub, IWeddingBiddersUow uow)
 {
     this.uow = uow;
     this.repository = uow.Bids;
 }
        public Bidder CreateBidder(BidderRegistrationRequestDto dto, Profile profile, IWeddingBiddersUow uow)
        {
            Bidder bidder = null;

            if (dto.BidderType == BidderType.Caterer)
            {
                bidder = new Caterer()
                {
                    Firstname = dto.Firstname,
                    Lastname = dto.Lastname,
                    Profile = profile,
                    Email = dto.Email,
                    CompanyName = dto.CompanyName
                };

                var gallery = new Gallery() { Name = "Profile" };
                gallery.Photos.Add(new Photo() { Url = "assets/images/carousel_1.jpg" });
                gallery.Photos.Add(new Photo() { Url = "assets/images/carousel_2.jpg" });
                gallery.Photos.Add(new Photo() { Url = "assets/images/carousel_3.jpg" });
                bidder.Galleries.Add(gallery);

                uow.Caterers.Add(bidder as Caterer);
            }

            if (dto.BidderType == BidderType.EventPlanner)
            {
                bidder = new EventPlanner()
                {
                    Firstname = dto.Firstname,
                    Lastname = dto.Lastname,
                    Profile = profile,
                    Email = dto.Email
                };

                var gallery = new Gallery() { Name = "Profile" };
                gallery.Photos.Add(new Photo() { Url = "assets/images/carousel_1.jpg" });
                gallery.Photos.Add(new Photo() { Url = "assets/images/carousel_2.jpg" });
                gallery.Photos.Add(new Photo() { Url = "assets/images/carousel_3.jpg" });
                bidder.Galleries.Add(gallery);

                uow.EventPlanners.Add(bidder as EventPlanner);
            }

            if (dto.BidderType == BidderType.MakeUpArtist)
            {
                bidder = new MakeUpArtist()
                {
                    Firstname = dto.Firstname,
                    Lastname = dto.Lastname,
                    Profile = profile,
                    Email = dto.Email
                };

                var gallery = new Gallery() { Name = "Profile" };
                gallery.Photos.Add(new Photo() { Url = "assets/images/carousel_1.jpg" });
                gallery.Photos.Add(new Photo() { Url = "assets/images/carousel_2.jpg" });
                gallery.Photos.Add(new Photo() { Url = "assets/images/carousel_3.jpg" });
                bidder.Galleries.Add(gallery);

                uow.MakeUpArtists.Add(bidder as MakeUpArtist);
            }

            if (dto.BidderType == BidderType.Photographer)
            {
                bidder = new Photographer()
                {
                    Firstname = dto.Firstname,
                    Lastname = dto.Lastname,
                    Profile = profile,
                    Email = dto.Email,
                    CompanyName = dto.CompanyName
                };

                var gallery = new Gallery() { Name = "Profile" };
                gallery.Photos.Add(new Photo() { Url = "assets/images/carousel_1.jpg" });
                gallery.Photos.Add(new Photo() { Url = "assets/images/carousel_2.jpg" });
                gallery.Photos.Add(new Photo() { Url = "assets/images/carousel_3.jpg" });
                bidder.Galleries.Add(gallery);

                uow.Photographers.Add(bidder as Photographer);
            }

            if (dto.BidderType == BidderType.DiscJockey)
            {
                bidder = new DiscJockey()
                {
                    Firstname = dto.Firstname,
                    Lastname = dto.Lastname,
                    Profile = profile,
                    Email = dto.Email,
                    CompanyName = dto.CompanyName
                };

                var gallery = new Gallery() { Name = "Profile" };
                gallery.Photos.Add(new Photo() { Url = "assets/images/carousel_1.jpg" });
                gallery.Photos.Add(new Photo() { Url = "assets/images/carousel_2.jpg" });
                gallery.Photos.Add(new Photo() { Url = "assets/images/carousel_3.jpg" });
                bidder.Galleries.Add(gallery);

                uow.DiscJockeys.Add(bidder as DiscJockey);
            }

            return bidder;
        }
 public IssueController(IWeddingBiddersUow uow)
     :base()
 { this.uow = uow; }
 public BidderController(IWeddingBiddersUow uow, IBidderService service)
 {
     this.uow = uow;
     this.service = service;
 }
 public CatererService(IEncryptionService encryptionService, IWeddingBiddersUow uow)
 {
     this.encryptionService = encryptionService;
     this.uow = uow;
 }
Exemplo n.º 11
0
 public BidService(IWeddingBiddersUow uow)
 {
     this.uow = uow;
 }
 public MessageService(IWeddingBiddersUow uow)
 {
     this.uow = uow;
 }
 public BidderDescriptionController(IWeddingBiddersUow uow)
 {
     this.uow = uow;
 }
 public MessageController(IMessageService messageService,IWeddingBiddersUow uow)
 {
     this.uow = uow;
     this.repository = uow.Messages;
     this.messageService = messageService;
 }
 public ProfileService(IWeddingBiddersUow uow)
 {
     this.uow = uow;
 }
 public SubscriptionService(IWeddingBiddersUow uow)
 {
     this.uow = uow;
 }
 public CustomerController(ICustomerService customerService, IWeddingBiddersUow uow)
 {
     this.service = customerService;
     this.uow = uow;
     this.repository = uow.Customers;
 }
Exemplo n.º 18
0
 public BidderService(IWeddingBiddersUow uow, IEncryptionService encryptionService)
 {
     this.uow = uow;
     this.encryptionService = encryptionService;
 }
 public MembershipService(IWeddingBiddersUow WeddingBiddersUow)
 {
 }
 public WeddingController(IWeddingBiddersUow uow)
 {
     this.repository = uow.Weddings;
     this.uow = uow;
 }
 public ProfileController(IProfileService service, IWeddingBiddersUow uow)
 {
     this.service = service;
     this.uow = uow;
 }