Exemple #1
0
 public ProductFormController(ProductRepository pRepo, ProductSmallFramePhotoViewModel pvm, CategoryHeaderRepository chr)
 {
     categoryHeaderRepository = chr;
     productRepository        = pRepo;
     photoViewModel           = pvm;
     viewList = new List <ProductSmallFramePhotoViewModel>();
     populateViewModel();
 }
 public ProductController(IProductRepository iprepo, CategoryHeaderRepository cHR)
 {
     categoryHeaderRepository = cHR;
     productRepository        = iprepo;
     productHpVModel          = new ProductHomepageViewModel();
 }
 public CostumerReviewController(CostumerReviewRepository iprepo)
 {
     repository = iprepo;
 }
 public CategoryHeaderController(IGenericProductRepository <CategoryHeaderModel> cate)
 {
     _repository  = cate;
     categoryRepo = new CategoryHeaderRepository();
 }
 public CategoryController(CategoryRepository iprepo)
 {
     repository = iprepo;
 }