public Plant getPlantByName(Plant plant) { return(Dbase.getCurrentInstance() .plants.Where(p => p.name == plant.name) .FirstOrDefault <Plant>()); }
public IList <DataValues> getAllDataValuesByPlant(Plant plant) { return(Dbase.getCurrentInstance().dataValues .Where(dv => dv.plant == plant) .ToList <DataValues>()); }
public Plant getPlantByNameAndCooperative(Plant plant) { return(Dbase.getCurrentInstance().plants .Where(p => p.name == plant.name && p.cooperativeId == plant.cooperativeId) .FirstOrDefault <Plant>()); }