public Test Update(Tables.Tests t, List <Tables.Questions> q, List <Tables.BadAnswers> b) { TID = t.ID; Time = t.Time; Access = t.Access; Name = t.Name; Questions = q.Select(x => new Question(x, b.Where(z => z.QID == x.ID).ToList())).ToList(); return(this); }
public Test(Tables.Tests t, List <Tables.Questions> q, List <Tables.BadAnswers> b) { Update(t, q, b); }