add_hours (#62)
Add hours to registration merge add document scan endpoint Co-authored-by: MaxchilKH <m.w.bohdanowicz@gmail.com>
This commit is contained in:
parent
7124b457dc
commit
102ec1feac
src
InternshipSystem.Api
InternshipSystem.Core/Entity/Internship
@ -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; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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)
|
||||||
{
|
{
|
||||||
|
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user