/// <summary> /// Returns all items from the database /// </summary> /// <returns>All items in an IEnumerable object</returns> public List <Item> GetAllItems() { _logger.LogInfo("GetAllItems Method initiated"); using (var itemContext = new ItemContext()) { var items = itemContext.Items.ToList(); return(items); } }