public InventoryItem GetInventoryItem(int ID) { using (var context = new SBContext()) { return(context.InventoryItems.Find(ID)); } }
public void SaveInventoryItem(InventoryItem inventoryItem) { using (var context = new SBContext()) { context.InventoryItems.Add(inventoryItem); context.SaveChanges(); } }
public IQueryable <InventoryItem> GetInventoryItems() { using (var context = new SBContext()) { var items = context.InventoryItems.ToList(); return(items.AsQueryable()); } }
public InventoryItem DeleteInventoryItem(int ID) { using (var context = new SBContext()) { var item = context.InventoryItems.Find(ID); context.InventoryItems.Remove(item); context.SaveChanges(); return(item); } }
public ServiceRepository(SBContext context) { this.db = context; }
public WorkingHourRepository(SBContext context) { this.db = context; }
public UserRepository(SBContext context) { this.db = context; }
public PedidoRP(SBContext context, CarrinhoCompra carrinho) { _context = context; _carrinho = carrinho; }
public CategoriaRP(SBContext contexto) { _context = contexto; }
public CustomerNotificationRepository(SBContext context) { this.db = context; }
public TeamNotificationRepository(SBContext context) { this.db = context; }
public CurrencyRepository(SBContext context) { this.db = context; }
public KlientsController(SBContext context) { _context = context; }
public CountryRepository(SBContext context) { this.db = context; }
public PermissionRepository(SBContext context) { this.db = context; }
public CarrinhoCompra(SBContext context) { _context = context; }
public BusinessRepository(SBContext context) { this.db = context; }
public DalUnitOfWork() { db = new SBContext("SBContext"); }
public ClientRepository(SBContext context) { this.db = context; }
public SlotRepository(SBContext context) { this.db = context; }
public ProdutoRP(SBContext contexto) { _context = contexto; }
public Time_ZoneRepository(SBContext context) { this.db = context; }
public CalendarSettingRepository(SBContext context) { this.db = context; }
public BookingRepository(SBContext context) { this.db = context; }
public PozyczkisController(SBContext context) { _context = context; }
public WorkingBreakRepository(SBContext context) { this.db = context; }
public PageLangRepository(SBContext context) { this.db = context; }
public EmployeeRepository(SBContext context) { this.db = context; }
public CarrinhoCompraItemRP(SBContext context) { _context = context; }