Warehouse.Depot.GetDepotWhereSoftwareExists C# (CSharp) Method

GetDepotWhereSoftwareExists() public static method

Get list of depot where software exists in
public static GetDepotWhereSoftwareExists ( Software software ) : IList
software Software
return IList
        public static IList<Depot> GetDepotWhereSoftwareExists(Software software) {

            List<Depot> result = new List<Depot>();
            QueryResultRows<Depot> depots = Db.SQL<Depot>("SELECT o FROM Warehouse.Depot o");

            foreach(Depot depot in depots) {

                if( depot.FindSoftware(software) != null ) {
                    result.Add(depot);
                    continue;
                }
            }
            return result;
        }
    }