using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace BootCamp.Service.Contract
{
public interface IProductService
{
///
/// Create table interface.
///
/// The table name to create.
/// The table partition key.
/// The table sort key.
///
Task CreateTable(string tableName, string partitionKey, string sortKey);
///
/// Read proruct item interface.
///
///
///
Task ReadProduct(ProductModel model);
///
/// Add product item interface.
///
///
///
Task AddProduct(ProductModel model);
///
/// Delete product item interface.
///
///
///
Task DeleteProduct(ProductModel model);
///
/// Begin the transaction mode.
///
///
void BeginTransaction();
///
/// Commit the current transaction.
///
///
Task CommitTransactionAsync();
///
/// Rollback the current transaction.
///
///
void RollbackTransaction();
}
}