/// <summary> /// Repository for Distribution Centre Losses Report /// </summary> /// <returns></returns> public List <DistributionCentreLosses> GetDistributionCentreLosses() { List <DistributionCentreLosses> centreList = null; centreList = ViewDataAccess.GetDistributionCentreLosses(_connectionString); return(centreList); }
/// <summary> /// Repository for Distribution Centre Losses Report /// </summary> /// <returns></returns> public List <DistributionCentreLosses> GetDistributionCentreLosses() { List <DistributionCentreLosses> centreList = null; using (SqlConnection connection = new SqlConnection(_connectionString)) { connection.Open(); centreList = ViewDataAccess.GetDistributionCentreLosses(connection); } return(centreList); }