コード例 #1
0
        public string StockUpdate(int sumOfTotalQuantity, int itemId)
        {
            if (stockInGateway.StockIn(sumOfTotalQuantity, itemId) > 0)
            {
                return("Stock In Successfull");
            }

            return("Stock In Unsuccessfull");
        }
コード例 #2
0
        public string StockIn(StockInModel aStockIn)
        {
            int rowAffect = stockIn.StockIn(aStockIn);

            if (rowAffect == 1)
            {
                return("Stock In Successfull");
            }
            else
            {
                return("Stock In Failed");
            }
        }