private List<Dinner> CreateTestDinners()
        {
            List<Dinner> dinners = new List<Dinner>();
            for (int i = 0; i < 101; i++)
            {
                Dinner sampleDinner = new Dinner()
                {
                    Id = i.ToString(),
                    Name = "Sample Dinner" + i.ToString(),
                    Location = "Sample Dinner Location" + i.ToString()
                };

                dinners.Add(sampleDinner);
            }
            return dinners;
        }
예제 #2
0
 public void Add(Dinner dinner)
 {
 }
예제 #3
0
 public void Add(Dinner dinner)
 {
     _db.Add(dinner);
 }
예제 #4
0
 public void Add(Dinner dinner)
 {
     _dinnerList.Add(dinner);
 }