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); }
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); }