public AdminController( IUserManagement userManagement, IProductManagement productManagement) { this.userManagement = userManagement; this.productManagement = productManagement; }
public OrderController() { Management = new CartManagement(); OrderManagement = new OrderManagement(); UserManagement = new UserManagement(); ProductManagement = new ProductManagement(); }
/// <summary> /// Bridge extension for DeleteProduct using an id /// </summary> public static bool DeleteProduct(this IProductManagement facade, long id) { if (facade is IProductManagementModification modification) { return(modification.DeleteProduct(id)); } throw new NotSupportedException("Instance of product management does not support expression delete product"); }
/// <summary> /// Bridge extension for LoadTypes using filter expression /// </summary> public static IReadOnlyList <TType> LoadTypes <TType>(this IProductManagement facade, Expression <Func <TType, bool> > selector) { if (facade is IProductManagementTypeSearch typeSearch) { return(typeSearch.LoadTypes(selector)); } throw new NotSupportedException("Instance of product management does not support expression type search"); }
public ModelViewModel(IModelManagement modelManagement, IProductManagement productManagement, IManufactureManager manufactureManager) { this.modelManagement = modelManagement; this.productManagement = productManagement; this.manufactureManager = manufactureManager; GetProductTypes(); getAllManufatures(); getAllModels(); }
void Visit(IProductManagement management) { var batchManagement = management as IManagedByBatchNumber; if (Object.ReferenceEquals(null, batchManagement)) { return; } Console.WriteLine($"Batch number: {batchManagement.BatchNo}"); }
#pragma warning restore CS0649 // Field 'ProductController.isFakeData' is never assigned to, and will always have its default value false public ProductController(IProductManagement _ipromngmt) { try { ipromngmt = _ipromngmt; if (ipromngmt == null) { ipromngmt = new ProductManagement(); currentUserID = ((CustomPrincipal)HttpContext.Current.User).UserId; } else { currentUserID = ((CustomPrincipal)HttpContext.Current.User).UserId; } } catch (Exception ex) { throw ex; } }
public ProductManagementMemoryDbTest() { _productManagement = new ProductManagementMemoryDb(); }
public ProductTypeViewModel(IProductManagement productManagement) { this.productManagement = productManagement; }
public ProductController(IProductManagement productManagement) { _productManagement = productManagement; }
public DietController(IProductManagement productManagement, IUserGoalsManagement userGoalsManamgenet) { this.productManagement = productManagement; this.userGoalsManamgenet = userGoalsManamgenet; }
public DailyProductTableViewComponent(IProductManagement productManagement) { this.productManagement = productManagement; }
public ProductsController(IProductManagement productManagement) { this.productManagement = productManagement; }
public ProductManagementSqLiteTest() { _productManagement = new ProductManagementSqLite(); }
public InventoryItemsController(IInventoryItemManagement inventoryItemManagement, IProductManagement productManagement) { this.inventoryItemManagement = inventoryItemManagement; this.productManagement = productManagement; }
public HomeController() { ProductManagement = new ProductManagement(); }
public FilterUtil(IProductManagement productDb) { _productDb = productDb; }