35 lines
1.1 KiB
C#
35 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using CompanyManagment.App.Contracts.InstitutionContractContactinfo;
|
|
using MongoDB.Bson;
|
|
using MongoDB.Bson.Serialization.Attributes;
|
|
|
|
namespace Company.Domain.InstitutionContractInsertTempAgg;
|
|
|
|
public class InstitutionContractExtenstionTemp
|
|
{
|
|
public InstitutionContractExtenstionTemp(long previousContractingPartyId)
|
|
{
|
|
Id = Guid.NewGuid();
|
|
PreviousId = previousContractingPartyId;
|
|
}
|
|
|
|
[BsonId] // Specifies this field as the _id in MongoDB
|
|
[BsonRepresentation(BsonType.String)] // Ensures the GUID is stored as a string
|
|
public Guid Id { get; set; }
|
|
public long PreviousId { get; set; }
|
|
public string Address { get; set; }
|
|
public string City { get; set; }
|
|
public string Province { get; set; }
|
|
public List<EditContactInfo> ContactInfos { get; set; }
|
|
|
|
public void SetContractingPartyInfos(string address, string city, string province, List<EditContactInfo> contactInfos)
|
|
{
|
|
Address = address;
|
|
City = city;
|
|
Province = province;
|
|
ContactInfos = contactInfos;
|
|
}
|
|
}
|
|
|