public IEnumerable <Library.Inventory> GetInventory(int LocId) { return(OrderMapper.Map(_db.Inventory.Where(r => r.LocationId == LocId))); }
public void RemoveCustomer(Customer cust) { _db.Remove(OrderMapper.Map(cust)); }
public IEnumerable <Library.Location> GetLocations() { return(OrderMapper.Map(_db.Location.Include(r => r.Customer))); }
public IEnumerable <Order> SearchOrdersByStore(int LocId) { return(OrderMapper.Map(_db.Cart.Where(r => r.LocId == LocId))); }
public void AddLocation(Location loc) { _db.Add(OrderMapper.Map(loc)); _db.SaveChanges(); }
public void AddCustomer(Customer cust) { _db.Add(OrderMapper.Map(cust)); _db.SaveChanges(); }
public IEnumerable <Order> GetAllOrders() { return(OrderMapper.Map(_db.Cart)); }
public IEnumerable <Library.Products> GetProductHistory() { return(OrderMapper.Map(_db.ProdHist)); }
public IEnumerable <Library.Customer> GetCustomers() { return(OrderMapper.Map(_db.Customer)); }
public IEnumerable <Library.Order> GetCustOrders(int custId) { return(OrderMapper.Map(_db.Cart.Include(r => r.Cust).Where(r => r.Cust.Id == custId))); }