/// <summary> /// Repository for Distribution Centre Stock Report /// </summary> /// <returns></returns> public List <DistributionCentreStock> GetDistributionCentreStock() { List <DistributionCentreStock> stockList = null; stockList = ViewDataAccess.GetDistributionCentreStock(_connectionString); return(stockList); }
/// <summary> /// Repository for Distribution Centre Stock Report /// </summary> /// <returns></returns> public List <DistributionCentreStock> GetDistributionCentreStock() { List <DistributionCentreStock> stockList = null; using (SqlConnection connection = new SqlConnection(_connectionString)) { connection.Open(); stockList = ViewDataAccess.GetDistributionCentreStock(connection); } return(stockList); }