public void UpdateStockDetail(int stockVal, int sId) { using (var db = new eTempleDbDB()) { db.Execute("Update StockDetails set Stock = Stock - @0 where ServiceId = @1 ", stockVal, sId); } }