public string StockUpdate(int sumOfTotalQuantity, int itemId) { if (stockInGateway.StockIn(sumOfTotalQuantity, itemId) > 0) { return("Stock In Successfull"); } return("Stock In Unsuccessfull"); }
public string StockIn(StockInModel aStockIn) { int rowAffect = stockIn.StockIn(aStockIn); if (rowAffect == 1) { return("Stock In Successfull"); } else { return("Stock In Failed"); } }