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)); } }
public async Task <ActionResult <TimeTable> > TimeTableGetById(int id) { return(Ok(await lessonStorage.GetTimeTableById(id))); }