merge main > uat #2
|
|
@ -394,7 +394,7 @@ namespace OnlineAssessment.Data.EFCore
|
|||
details.total_time = (int)exam.ExamDurationInSeconds;
|
||||
details.total_likes = _context.BookmarkedExams.Where(b => b.ExamId == exam_id && b.IsActive == true).ToList().Count; ;
|
||||
details.author_id = exam.CreatedBy;
|
||||
//details.points_needed = 0;
|
||||
details.points_needed = 0;
|
||||
details.attempts_allowed = (int)exam.AttemptsAllowed;
|
||||
|
||||
/* SUBSDELETE
|
||||
|
|
@ -410,10 +410,10 @@ namespace OnlineAssessment.Data.EFCore
|
|||
SubscribedExams subsExam = _context.SubscribedExams.Where(se => se.SubscriptionId == svm.id && se.ExamId == exam_id && se.IsActive == true).FirstOrDefault();
|
||||
details.isSubscribed = subsExam != null ? true : false;
|
||||
}
|
||||
|
||||
*/
|
||||
details.points_available = 1;
|
||||
details.isSubscribed = true;
|
||||
*/
|
||||
|
||||
|
||||
List <ExamAttempts> allAttempts = _context.ExamAttempts.Where(a => a.ExamId == exam_id && a.IsActive == true).ToList();
|
||||
List<ExamAttempts> myAttempts;
|
||||
|
|
|
|||
|
|
@ -1147,9 +1147,9 @@ namespace OnlineAssessment.Data.EFCore
|
|||
name = e.Name,
|
||||
sections_count = 0,//_context.ExamSections.Where(es => es.IsActive == true && es.ExamId == e.Id).ToList().Count,
|
||||
sections_status = StatusCode.DRAFT.ToString(),
|
||||
//examtype_id = (int)e.ExamTypeId,
|
||||
//language_id = e.LanguageId,
|
||||
//exam_status = e.ExamStatus,
|
||||
examtype_id = (int)e.ExamTypeId, //Comment
|
||||
language_id = e.LanguageId, //Comment
|
||||
exam_status = e.ExamStatus,
|
||||
//complexity = (short)e.Complexity,
|
||||
created_on = e.CreatedOn,
|
||||
updated_on = e.UpdatedOn,
|
||||
|
|
@ -1330,7 +1330,7 @@ namespace OnlineAssessment.Data.EFCore
|
|||
module_id = p.ModuleId,
|
||||
language_code = _context.Languages.Where(l => l.Id == p.LanguageId).FirstOrDefault().Code.ToString(),
|
||||
status = p.Status,
|
||||
complexity = (short)p.Complexity,
|
||||
//complexity = (short)p.Complexity,
|
||||
start_date = p.OpenDatetime,
|
||||
created_on = p.CreatedOn,
|
||||
updated_on = p.UpdatedOn,
|
||||
|
|
|
|||
Loading…
Reference in New Issue