Admin controller, Locations controller, requests to add available countries, request to get available countries

This commit is contained in:
2024-08-17 21:30:51 +03:00
parent 7cbe3d9698
commit 3cb2083222
59 changed files with 477 additions and 167 deletions

View File

@@ -6,7 +6,9 @@ namespace Domains.ApplicantDomain;
public class Applicant : IEntity
{
/// Unique identifier of the <see cref="Applicant"/>
public Guid Id { get; set; }
public Guid Id { get; private set; } = Guid.NewGuid();
public Guid UserId { get; set; }
/// Full name of the <see cref="Applicant"/>
public Name Name { get; set; } = null!;

View File

@@ -1,4 +1,6 @@
namespace Domains.LocationDomain;
using System.Text.Json.Serialization;
namespace Domains.LocationDomain;
/// Model of a city
public class City : IEntity
@@ -10,5 +12,6 @@ public class City : IEntity
public string Name { get; set; } = null!;
/// <see cref="LocationDomain.Country"/> in which the city is located
[JsonIgnore]
public Country Country { get; set; } = null!;
}
}