add_hours #62

Merged
maxchil merged 3 commits from add_hours into master 2020-10-08 21:57:47 +02:00
3 changed files with 5 additions and 1 deletions

View File

@ -13,6 +13,7 @@ namespace InternshipSystem.Api.Commands
public DateTime? End { get; set; } public DateTime? End { get; set; }
public UpdateMentor? Mentor { get; set; } public UpdateMentor? Mentor { get; set; }
public List<long> Subjects { get; set; } public List<long> Subjects { get; set; }
public int? Hours { get; set; }
public long? Type { get; set; } public long? Type { get; set; }
} }

View File

@ -36,6 +36,7 @@ namespace InternshipSystem.Api.UseCases
{ {
subjectRegistration.Start = registrationCommand.Start ?? subjectRegistration.Start; subjectRegistration.Start = registrationCommand.Start ?? subjectRegistration.Start;
subjectRegistration.End = registrationCommand.End ?? subjectRegistration.End; subjectRegistration.End = registrationCommand.End ?? subjectRegistration.End;
subjectRegistration.DeclaredHours = registrationCommand.Hours ?? subjectRegistration.DeclaredHours;
if (registrationCommand.Type.HasValue) if (registrationCommand.Type.HasValue)
{ {

View File

@ -16,8 +16,10 @@ namespace InternshipSystem.Core.Entity.Internship
public Mentor Mentor { get; set; } public Mentor Mentor { get; set; }
public List<ProgramSubject> Subjects { get; set; } public List<ProgramSubject> Subjects { get; set; }
public InternshipType Type { get; set; } public InternshipType Type { get; set; }
public int DeclaredHours { get; set; }
public DocumentState State { get; set; } public DocumentState State { get; set; }
public static InternshipRegistration Create() public static InternshipRegistration Create()
{ {
return new InternshipRegistration(); return new InternshipRegistration();