public EditChairViewModel(ControllersEnum controller, int id, IChairDbContext chairDb) : base(controller) { this.Chair = chairDb.Edit(id); this.AdditionalImages = chairDb.AllAdditionalImagesByChairId(id); }
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); }