Ejemplo n.º 1
0
        /// <summary>
        /// delete a product entry in the database
        /// </summary>
        /// <param name="locationId">product order to be deleted</param>
        public void DeleteProductEntries(int locationId)
        {
            Log.Information("Removing all ProductEntry's with location Id {Id}", locationId);

            IQueryable <ProductEntry> productEntry = _context.ProductEntry
                                                     .Where(p => p.LocationId == locationId);

            _context.RemoveRange(productEntry);
        }