public string DeleteAllEntities() { StringBuilder result = new StringBuilder(); result.AppendFormat("Deleted {0} categories\r\n", categoryRepository.DeleteAll()); result.AppendFormat("Deleted {0} contractors\r\n", contractorRepository.DeleteAll()); result.AppendFormat("Deleted {0} contracts\r\n", contractRepository.DeleteAll()); result.AppendFormat("Deleted {0} images\r\n", imageRepository.DeleteAll()); result.AppendFormat("Deleted {0} products\r\n", inventoryRepository.DeleteAll()); result.AppendFormat("Deleted {0} order items\r\n", orderItemRepository.DeleteAll()); result.AppendFormat("Deleted {0} orders\r\n", orderRepository.DeleteAll()); result.AppendFormat("Deleted {0} shopping cart items\r\n", shoppingCartItemRepository.DeleteAll()); result.AppendFormat("Deleted {0} shopping carts\r\n", shoppingCartRepository.DeleteAll()); return(result.ToString()); }
public void ClearCart(List <ShoppingCartItem> entities) { _shoppingCartItemRepository.DeleteAll(entities); }