Esempio n. 1
0
 private void TestEntityDelete(TimeTable timeTableToDelete)
 {
     for (int i = 0; i < listTimetable.Count; i++)
     {
         lessonStorage.DeleteTimeTable((int)listTimetable[i].Id);
         Assert.AreEqual(null, lessonStorage.GetTimeTableById((int)listTimetable[i].Id));
     }
 }
Esempio n. 2
0
 public async Task <ActionResult <TimeTable> > TimeTableGetById(int id)
 {
     return(Ok(await lessonStorage.GetTimeTableById(id)));
 }