change
This commit is contained in:
@@ -23,12 +23,15 @@ namespace Entities.Contracts
|
||||
[Column("description")]
|
||||
public string Description { get; set; }
|
||||
|
||||
[Column("subject_area")]
|
||||
public string SubjectArea { get; set; }
|
||||
|
||||
[Required]
|
||||
[Column("due_date")]
|
||||
public DateTime DueDate { get; set; }
|
||||
|
||||
[Column("total_points")]
|
||||
public decimal? TotalPoints { get; set; }
|
||||
public float? TotalPoints { get; set; }
|
||||
|
||||
[Column("created_by")]
|
||||
[ForeignKey("Creator")]
|
||||
|
@@ -23,11 +23,14 @@ namespace Entities.Contracts
|
||||
|
||||
[Required]
|
||||
[Column("question_number")]
|
||||
public uint QuestionNumber { get; set; }
|
||||
public byte QuestionNumber { get; set; }
|
||||
|
||||
[Column("created_at")]
|
||||
public DateTime CreatedAt { get; set; }
|
||||
|
||||
[Column("score")]
|
||||
public float? Score { get; set; }
|
||||
|
||||
[Required]
|
||||
[Column("detail_id")]
|
||||
[ForeignKey("AssignmentGroup")]
|
||||
|
@@ -34,8 +34,7 @@ namespace Entities.Contracts
|
||||
public DateTime SubmissionTime { get; set; }
|
||||
|
||||
[Column("overall_grade")]
|
||||
[Precision(5, 2)]
|
||||
public decimal? OverallGrade { get; set; }
|
||||
public float? OverallGrade { get; set; }
|
||||
|
||||
[Column("overall_feedback")]
|
||||
public string OverallFeedback { get; set; }
|
||||
|
@@ -38,8 +38,7 @@ namespace Entities.Contracts
|
||||
public bool? IsCorrect { get; set; }
|
||||
|
||||
[Column("points_awarded")]
|
||||
[Precision(5, 2)]
|
||||
public decimal? PointsAwarded { get; set; }
|
||||
public float? PointsAwarded { get; set; }
|
||||
|
||||
[Column("teacher_feedback")]
|
||||
public string TeacherFeedback { get; set; }
|
||||
|
@@ -14,6 +14,10 @@
|
||||
this.Result = result;
|
||||
}
|
||||
|
||||
public ApiResponse()
|
||||
{
|
||||
}
|
||||
|
||||
public string Message { get; set; }
|
||||
|
||||
public bool Status { get; set; }
|
||||
|
55
Entities/DTO/ExamDto.cs
Normal file
55
Entities/DTO/ExamDto.cs
Normal file
@@ -0,0 +1,55 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Entities.DTO
|
||||
{
|
||||
public class ExamDto
|
||||
{
|
||||
public Guid? AssignmentId { get; set; }
|
||||
public string AssignmentTitle { get; set; } = string.Empty;
|
||||
public string Description { get; set; }
|
||||
public string SubjectArea { get; set; }
|
||||
public List<QuestionGroupDto> QuestionGroups { get; set; } = new List<QuestionGroupDto>();
|
||||
}
|
||||
|
||||
public class QuestionGroupDto
|
||||
{
|
||||
public int Index { get; set; }
|
||||
|
||||
public string Title { get; set; }
|
||||
|
||||
public int Score { get; set; }
|
||||
|
||||
public string QuestionReference { get; set; }
|
||||
|
||||
public List<SubQuestionDto> SubQuestions { get; set; } = new List<SubQuestionDto>();
|
||||
|
||||
public List<QuestionGroupDto> SubQuestionGroups { get; set; } = new List<QuestionGroupDto>();
|
||||
}
|
||||
|
||||
public class SubQuestionDto
|
||||
{
|
||||
|
||||
public byte Index { get; set; }
|
||||
|
||||
public string Stem { get; set; }
|
||||
|
||||
public float Score { get; set; }
|
||||
|
||||
public List<OptionDto> Options { get; set; } = new List<OptionDto>();
|
||||
|
||||
public string SampleAnswer { get; set; }
|
||||
|
||||
public string QuestionType { get; set; }
|
||||
public string DifficultyLevel { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class OptionDto
|
||||
{
|
||||
public string Value { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user