private void GetOutOfStockProducts() { try { int count = stock.GetOutOfStockProductsCount(); string totalOutStockproducts; totalOutStockproducts = count.ToString(); totalStock1.Text = totalOutStockproducts; } catch (Exception ex) { logger.Error(MODULE_NAME, "GetTotalProducts", ex); } }