system-praktyk-api/src/InternshipSystem.Core/Entity/Internship/InternshipRegistration.cs
mborzyszkowski 35bc61676f sync master
# Conflicts:
#	src/InternshipSystem.Api/Controllers/EditionController.cs
#	src/InternshipSystem.Core/Entity/Edition.cs
#	src/InternshipSystem.Core/Entity/Internship/InternshipRegistration.cs
#	src/InternshipSystem.Core/Entity/Report.cs
2020-08-31 17:22:02 +02:00

31 lines
834 B
C#

using System;
using InternshipSystem.Core.Entity.Internship;
namespace InternshipSystem.Core
{
public class InternshipRegistration
{
public long Id { get; set; }
public Company Company { get; set; }
public BranchOffice BranchAddress { get; set; }
public DateTime Start { get; set; }
public DateTime End { get; set; }
public InternshipType Type { get; set; }
public DocumentState State { get; set; }
public static InternshipRegistration Create()
{
return new InternshipRegistration();
}
public void UpdateCompany(Company newCompany)
{
Company = newCompany;
}
public void UpdateBranch(BranchOffice branch)
{
BranchAddress = branch;
}
}
}