/// <summary> /// Adds the Stock item to the sale /// </summary> /// <param name="stockCode">Stock code of the Stock item</param> /// <returns>True or False</returns> public async Task <bool> AddStockToSale(string stockCode) { var action = new GetProductsSerializeAction(_stockRestClient, _cacheManager, 1); await PerformTask(action); return(((SuccessContract)(action.ResponseValue)).success); }
/// <summary> /// Gets the available stock items based on the page index /// </summary> /// <param name="pageIndex">Page index for the Paged data</param> /// <returns>List of Stock Items</returns> public async Task <List <StockModel> > GetStockItems(int pageIndex) { var action = new GetProductsSerializeAction(_stockRestClient, _cacheManager, pageIndex); await PerformTask(action); return((List <StockModel>)action.ResponseValue); }