Esempio n. 1
0
        public List <Field> GetFieldsAppliedWithManure(ImportedManure importedManure)
        {
            var farmManuresWithImported = GetFarmManureIds(importedManure);
            var fields = GetFieldsAppliedWithFarmManure(farmManuresWithImported);

            return(fields);
        }
Esempio n. 2
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);
        }