예제 #1
0
 public IEnumerable <PlantRecord> GetPlantsByUser(long userId)
 {
     return(plantTable.GetAllData()
            .Where(plant => plant.UserId == userId)
            .ToList());
 }
예제 #2
0
 public UserRecord GetUser(long userId)
 {
     return(userTable.GetAllData()
            .FirstOrDefault(u => u.Id == userId));
 }