/// <summary> /// Repository for Global Stock Report /// </summary> /// <returns></returns> public List <GlobalStock> GetGlobalStock() { List <GlobalStock> stocks = null; stocks = ViewDataAccess.GetGlobalStock(_connectionString); return(stocks); }
/// <summary> /// Repository for Global Stock Report /// </summary> /// <returns></returns> public List <GlobalStock> GetGlobalStock() { List <GlobalStock> stocks = null; using (SqlConnection connection = new SqlConnection(_connectionString)) { connection.Open(); stocks = ViewDataAccess.GetGlobalStock(connection); } return(stocks); }