# 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
31 lines
834 B
C#
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;
|
|
}
|
|
}
|
|
} |