コード例 #1
0
 //
 // GET: /Administrator/Category/
 public CategoryManagementController(ICategoryActionService category, IConfigurationActionService config)
     : base(category, config)
 {
     try
     {
         Permission = ListPermission.FirstOrDefault(c => c.Module.Equals(Helper.ValueDefine.CATEGORY)).Role;
     }
     catch { }
 }
コード例 #2
0
 //
 // GET: /Administrator/ProductManagement/
 public ProductManagementController(IProductActionService _product, 
     IProductAttributeActionService _attribute,
     ICategoryActionService _category, IModelActionService _model,
     IManufacturerActionService _manufacturer, ISearchActionService _search, IConfigurationActionService _config,
     IEmailTemplateActionService _emailtemplate, IEmailListActionService _emailist)
     : base(_product, _category, _model, _manufacturer, _search, _config, _attribute, _emailtemplate, _emailist)
 {
     try
     {
         Permission = ListPermission.FirstOrDefault(c => c.Module.Equals(Helper.ValueDefine.PRODUCT)).Role;
     }
     catch { }
 }
コード例 #3
0
 //
 // GET: /Search/
 public SearchController(ISearchActionService search, ICategoryActionService category)
     : base(search, category)
 {
 }
コード例 #4
0
 public BaseController(ISearchActionService _search, ICategoryActionService _category)
 {
     this.SearchService = _search; this.CategoryService = _category;
 }
コード例 #5
0
 public BaseController(ICategoryActionService _category, IManufacturerActionService _manufacturer)
 {
     this.CategoryService = _category;
     this.ManufacturerService = _manufacturer;
 }
コード例 #6
0
 public BaseController(IProductActionService _product, ICategoryActionService _category,
     IModelActionService _model, IManufacturerActionService _manufacturer, ISearchActionService _search,
     IConfigurationActionService _config, IProductAttributeActionService _attribute,IAttributeActionService _att)
 {
     this.ProductService = _product;
     this.CategoryService = _category;
     this.ModelService = _model;
     this.ManufacturerService = _manufacturer;
     this.SearchService = _search;
     this.ConfigurationService = _config;
     this.ProductAttribute = _attribute;
     this.AttributeService = _att;
 }
コード例 #7
0
 public BaseController(ICategoryActionService _category, IConfigurationActionService _config)
 {
     this.CategoryService = _category; this.ConfigurationService = _config;
 }
コード例 #8
0
 //
 // GET: /Category/
 public CategoryController(ICategoryActionService _category, IConfigurationActionService _config)
     : base(_category, _config)
 {
 }
コード例 #9
0
 //
 // GET: /Administrator/Validate/
 public ValidateController(ICategoryActionService _category, IManufacturerActionService _manufacturer)
     : base(_category, _manufacturer)
 {
 }