public static bool RemoveStock(int StockID) { bool deleted = false; try { using (LTS.LTSBase access = new LTS.LTSDC()) { access.DeleteStock(StockID); deleted = true; } } catch (Exception ex) { } return(deleted); }