This commit is contained in:
2026-03-02 15:07:33 -08:00
parent 4493d772bb
commit be4873283d
9 changed files with 60 additions and 61 deletions
@@ -1,28 +1,11 @@
using WinStudentGoalTracker.DataAccess;
namespace WinStudentGoalTracker.Models;
public class StudentResponse
{
public Guid IdStudent { get; set; }
public Guid? IdProgram { get; set; }
public Guid StudentId { get; set; }
public string? Identifier { get; set; }
public int? ProgramYear { get; set; }
public DateTime? EnrollmentDate { get; set; }
public DateTime? ExpectedGrad { get; set; }
public DateTime? CreatedAt { get; set; }
public static StudentResponse FromDatabaseModel(dbStudent student)
{
return new StudentResponse
{
IdStudent = student.IdStudent,
IdProgram = student.IdProgram,
Identifier = student.Identifier,
ProgramYear = student.ProgramYear,
EnrollmentDate = student.EnrollmentDate,
ExpectedGrad = student.ExpectedGrad,
CreatedAt = student.CreatedAt
};
}
public DateTime? ExpectedGradDate { get; set; }
public DateTime? LastEntryDate { get; set; }
public int GoalCount { get; set; }
public int ProgressEventCount { get; set; }
}