/// <summary> /// Repository for Stocktaking Report /// </summary> /// <param name="centreId"></param> /// <returns></returns> public List <StockTaking> GetStocktaking(int centreId) { List <StockTaking> packageList = null; packageList = ViewDataAccess.GetStocktaking(_connectionString, centreId); return(packageList); }
/// <summary> /// Repository for Stocktaking Report /// </summary> /// <param name="centreId"></param> /// <returns></returns> public List <StocktakingPackage> GetStocktaking(int centreId) { List <StocktakingPackage> packageList = null; using (SqlConnection connection = new SqlConnection(_connectionString)) { connection.Open(); packageList = ViewDataAccess.GetStocktaking(connection, centreId); } return(packageList); }