Y3S1-Cloud_Systems_DevOps/ThAmCo-Stock/ThAmCo.Stock/Data/StockContext/IStockContext.cs
2020-06-09 21:21:37 +01:00

22 lines
797 B
C#

using System.Collections.Generic;
using System.Threading.Tasks;
using ThAmCo.Stock.Models.Dto;
namespace ThAmCo.Stock.Data.StockContext
{
public interface IStockContext
{
Task<IEnumerable<ProductStockDto>> GetAll();
Task<IEnumerable<Price>> GetAllPrices();
Task<ProductStockDto> GetProductStockAsync(int id);
Task<IEnumerable<OrderRequest>> GetAllOrderRequests();
Task<OrderRequest> GetOrderRequest(int id);
void AddProductStockAsync();
Price AddPriceAsync(Price price);
void AddOrderRequest(OrderRequest order);
void UpdateProductStockAsync(ProductStock productStock);
void UpdateOrderRequest(OrderRequest orderRequest);
void ApproveOrderRequest(int id);
void SaveAndUpdateContext();
}
}