예제 #1
0
        public List <int> GetFarmManureIds(ImportedManure importedManure)
        {
            if (importedManure == null)
            {
                return(new List <int>());
            }
            var farmManureIds = FarmManures
                                .Where(fm => fm.SourceOfMaterialImportedManureId == importedManure.Id)
                                .Select(fm => fm.Id).ToList();

            return(farmManureIds);
        }
예제 #2
0
        public List <int> GetFarmManureIds(ManureStorageSystem manureStorageSystem)
        {
            if (manureStorageSystem == null)
            {
                return(new List <int>());
            }
            var farmManureIds = FarmManures
                                .Where(fm => fm.SourceOfMaterialStoredSystemId == manureStorageSystem.Id)
                                .Select(fm => fm.Id).ToList();

            return(farmManureIds);
        }