public JsonResult EnabledDisabledQuote(string id) { _productDataProvider = new ProductDataProvider(); ServiceResponse response = _productDataProvider.EnabledDisabledQuote(id, SessionHelper.UserID); return Json(response); }
public ProductService(IFileService fileService, IMetaService metaService, IProductDataProvider productDataProvider, ICheckoutProvider checkoutProvider, ISecurityService securityService) { _fileService = fileService ?? throw new ArgumentNullException(nameof(fileService)); _metaService = metaService ?? throw new ArgumentNullException(nameof(metaService)); _productDataProvider = productDataProvider ?? throw new ArgumentNullException(nameof(productDataProvider)); _checkoutProvider = checkoutProvider ?? throw new ArgumentNullException(nameof(checkoutProvider)); _securityService = securityService ?? throw new ArgumentNullException(nameof(securityService)); }
public ActionResult AddRawMaterial(string id = "") { if (!string.IsNullOrEmpty(id) && string.IsNullOrEmpty(Crypto.Decrypt(id))) return View("NotFound"); _productDataProvider = new ProductDataProvider(); ServiceResponse response = _productDataProvider.AddRawMaterial(id); return ShowUserFriendlyPages(response) ?? View(response.Data); }
public DisplayProductsViewModel(IProductDataProvider dataProvider) { if (dataProvider == null) { throw new ArgumentNullException(nameof(dataProvider)); } this.DataProvider = dataProvider; }
public ActionResult AddQuote(string id) { if (!string.IsNullOrEmpty(id) && string.IsNullOrEmpty(Crypto.Decrypt(id))) return View("NotFound"); _productDataProvider = new ProductDataProvider(); ServiceResponse response = _productDataProvider.AddQuote(id,SessionHelper.SelectedRole.RoleID==Constants.Role_Admin,SessionHelper.UserID); return ShowUserFriendlyPages(response) ?? View(response.Data); }
public JsonResult GetProductSampleForSearching(string searchText, string ignoreIds, string pageSize) { _productDataProvider = new ProductDataProvider(); List<ProductSampleDdlModel> productList = _productDataProvider.GetProductSampleForSearching(searchText.ToLower(), ignoreIds.ToLower(), pageSize, false); return Json(productList); }
public ProductController(IProductDataProvider productDataProvider) { this.productDataProvider = productDataProvider; }
public ValidPriceDecorator(IProductDataProvider target) { _target = target; }
public ActionResult SaveSample(ProductSampleAddModel model) { _productDataProvider = new ProductDataProvider(); ServiceResponse response = _productDataProvider.SaveSample(model, SessionHelper.UserID, SessionHelper.SelectedRole.RoleID); return Json(response); }
public DescriptionTrimmerDecorator(IProductDataProvider target) { _target = target; }
public JsonResult GetRawMaterialListForGraph(string encryptedRawMaterialID, int pageSize = 10, int pageIndex = 1, string sortIndex = "", string sortDirection = "") { _productDataProvider = new ProductDataProvider(); ServiceResponse response = _productDataProvider.GetRawMaterialListForGraph(encryptedRawMaterialID, pageSize, pageIndex, sortIndex, sortDirection); return Json(response); }
public ActionResult ManageSample() { _productDataProvider = new ProductDataProvider(); ServiceResponse response = _productDataProvider.ManageSample(); return ShowUserFriendlyPages(response) ?? View(response.Data); }
public ArchivingDecorator(IProductDataProvider target, ImportSettings settings) { _target = target; _settings = settings; }
public ProductsController(IProductDataProvider productDataProvider, IProducerDataProvider producerDataProvider, ICategoryDataProvider categoryDataProvider) { _producerDataProvider = producerDataProvider; _categoryDataProvider = categoryDataProvider; _productDataProvider = productDataProvider; }
public CatalogController(IProductDataProvider productData) { _ProductData = productData; }
public BrandsViewComponent(IProductDataProvider productData) { _ProductData = productData; }
public CatalogViewComponent(IProductDataProvider productData) { _ProductData = productData; }
public JsonResult GetQuoteList(QuoteSearchModel searchParams, int pageSize = 10, int pageIndex = 1, string sortIndex = "", string sortDirection = "") { _productDataProvider = new ProductDataProvider(); searchParams.IsAdmin = SessionHelper.SelectedRole.RoleID == Constants.Role_Admin; searchParams.CreatedBy = SessionHelper.UserID; ServiceResponse response = _productDataProvider.GetQuoteList(searchParams, pageSize, pageIndex, sortIndex, sortDirection); return Json(response); }
public ProductController(IProductDataProvider productData) { _productData = productData; }
public JsonResult GetQuoteProductPriceModel(QuoteProductPriceSearchModel model) { _productDataProvider = new ProductDataProvider(); ServiceResponse response = _productDataProvider.GetQuoteProductPriceModel(model,SessionHelper.SelectedRole.RoleID); return Json(response); }
public JsonResult EnabledDisabledRawMaterial(string id) { _productDataProvider = new ProductDataProvider(); long rawMaterialId = !string.IsNullOrEmpty(id) ? Convert.ToInt32(Crypto.Decrypt(id)) : 0; ServiceResponse response = _productDataProvider.EnabledDisabledRawMaterial(rawMaterialId, SessionHelper.UserID); return Json(response); }
public JsonResult GetSampleList(ProductSampleSearchModel searchParams, int pageSize = 10, int pageIndex = 1, string sortIndex = "", string sortDirection = "") { _productDataProvider = new ProductDataProvider(); ServiceResponse response = _productDataProvider.GetSampleList(searchParams, pageSize, pageIndex, sortIndex, sortDirection); return Json(response); }
public ProductRepository(IProductDataProvider productDataProvider) => _productDataProvider = productDataProvider;
public JsonResult SaveRawMaterial(RawMaterial model) { _productDataProvider = new ProductDataProvider(); ServiceResponse response = _productDataProvider.SaveRawMaterial(model, SessionHelper.UserID); if (response.IsSuccess && response.Data != null) { Session.Abandon(); FormsAuthentication.SignOut(); } return Json(response); }
public ProductRepository(IProductDataProvider dataProvider) { _dataProvider = dataProvider; }
public ProductsController(IProductDataProvider productDataProvider) { _productDataProvider = productDataProvider; }
public CartController(ICartDataProvider cartDataProvider, IProductDataProvider productDataProvider, UserManager <User> userManager) { _cartDataProvider = cartDataProvider; _productDataProvider = productDataProvider; this.userManager = userManager; }
public ProductProcessor(IProductDataProvider productDataProvider, IServiceProvider serviceProvider) { _productDataProvider = productDataProvider; _serviceProvider = serviceProvider; }
public ProductService(IProductDataProvider productDataProvider, IMapper mapper) { _productDataProvider = productDataProvider; _mapper = mapper; }
public SectionsViewComponent(IProductDataProvider productData) { _ProductData = productData; }