//public static async Task<List<QuestionDTO>> GetQuestions(TestDTO test) //{ // List<QuestionDTO> questions = new List<QuestionDTO>(); // // using() // { // } // return questions; //} public static async Task <List <string> > AddTest(TestDTO test, TeacherDTO teacher) { List <string> Result = new List <string>(); // using() { } return(Result); }
public AddTestVM() { AddQuestionCommand = new AddQuestionCommand(this); deleteanswerComand = new DeleteAnswerComand(this); addanswerComand = new AddAsnwerComand(this); addQuestionWindowComand = new AddQuestionWindowCommand(this); questions = new ObservableCollection <QuestionDTO>(); Answers = new ObservableCollection <AnswerOptionDTO>(); NewTest = new TestDTO(); }
public static async void RemoveTest(TestDTO Test)/////////////////////////////////////// { /// TestthisProg testthisProg = new TestthisProg(); /// testthisProg.NewTest(); await proxyTest.DeleteTestAsync(Test); //foreach (var item in testthisProg.tests) //{ // // tests.Add(item); //} // using() { } // tests.Remove(Test); }
public void RemoveTest(TestDTO test) { tests.Add(test); }
public void AddTest(TestDTO test) { tests.Add(test); }