Skip to content
Snippets Groups Projects
Commit a58a3b07 authored by esantangelo's avatar esantangelo
Browse files

helpers and dtos

parent 6a06dd0e
No related branches found
No related tags found
1 merge request!43Feature/results
using System;
using System.Collections.Generic;
using System.Text;
namespace Tsi1.BusinessLayer.Dtos
{
public class StudentCourseResultCreateDto
{
public int Result { get; set; }
public int StudentId { get; set; }
public int CourseId { get; set; }
}
}
using System;
using System.Collections.Generic;
using System.Text;
namespace Tsi1.BusinessLayer.Dtos
{
public class StudentCourseResultPreviewDto
{
public int Id { get; set; }
public int Result { get; set; }
public DateTime Date { get; set; }
public int StudentId { get; set; }
public int CourseId { get; set; }
}
}
using System;
using System.Collections.Generic;
using System.Text;
namespace Tsi1.BusinessLayer.Helpers
{
public static class CourseApproval
{
public const int MinimumApproval = 3;
}
}
......@@ -83,5 +83,8 @@ namespace Tsi1.BusinessLayer.Helpers
public const string VideoConferenceIsNotEvaluation = "Una video conferencia no es una evaluación";
public const string CourseAlreadyApproved = "El estudiante '{0}' ya aprovó el curso '{1}'";
public const string StudentCourseResultDoesNotExist = "El resultado con id '{0}' no existe";
}
}
......@@ -67,7 +67,9 @@ namespace Tsi1.BusinessLayer.Helpers
CreateMap<Evaluation, EvaluationModifyDto>();
CreateMap<Evaluation, EvaluationDetailDto>();
CreateMap<EvaluationInscription, EvaluationInscriptionDto>();
CreateMap<StudentCourseResult, StudentCourseResultCreateDto>();
CreateMap<StudentCourseResult, StudentCourseResultPreviewDto>();
CreateMap<ForumCreateDto, Forum>();
CreateMap<ForumPreviewDto, Forum>();
CreateMap<ForumModifyDto, Forum>();
......@@ -120,6 +122,8 @@ namespace Tsi1.BusinessLayer.Helpers
CreateMap<EvaluationModifyDto, Evaluation>().ForMember(x => x.Id, opt => opt.Ignore());
CreateMap<EvaluationDetailDto, Evaluation>();
CreateMap<EvaluationInscriptionDto, EvaluationInscription>();
CreateMap<StudentCourseResultCreateDto, StudentCourseResult>();
CreateMap<StudentCourseResultPreviewDto, StudentCourseResult>();
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment