Exemple #1
0
        public EditChairViewModel(ControllersEnum controller, int id, IChairDbContext chairDb)
            : base(controller)
        {
            this.Chair = chairDb.Edit(id);

            this.AdditionalImages = chairDb.AllAdditionalImagesByChairId(id);
        }
Exemple #2
0
        public EditChairViewModel(IChairDbContext chairDbContext, int id, int basketElementCount, int minAmoutToOrderChair)
            : base(ControllersEnum.Chairs, basketElementCount)
        {
            this.Chair = chairDbContext.Edit(id);

            this.MinAmoutToOrderChair = minAmoutToOrderChair;

            this.AdditionalChairImages = chairDbContext.AllAdditionalImagesByChairId(id);
        }