diff --git a/Dfe.Academies.Api.Infrastructure/Dfe.Academies.Infrastructure.csproj b/Dfe.Academies.Api.Infrastructure/Dfe.Academies.Infrastructure.csproj index 0d1e0acc7..c88b78d59 100644 --- a/Dfe.Academies.Api.Infrastructure/Dfe.Academies.Infrastructure.csproj +++ b/Dfe.Academies.Api.Infrastructure/Dfe.Academies.Infrastructure.csproj @@ -8,7 +8,7 @@ - + all diff --git a/Dfe.Academies.Application/Builders/EstablishmentDtoBuilder.cs b/Dfe.Academies.Application/Builders/EstablishmentDtoBuilder.cs index 4c8c33796..d25e95226 100644 --- a/Dfe.Academies.Application/Builders/EstablishmentDtoBuilder.cs +++ b/Dfe.Academies.Application/Builders/EstablishmentDtoBuilder.cs @@ -80,7 +80,7 @@ public EstablishmentDtoBuilder WithPhaseOfEducation(Domain.Establishment.Establi _dto.PhaseOfEducation = new NameAndCodeDto { Name = establishment?.PhaseOfEducation, - Code = establishment?.PhaseOfEducationCode + Code = establishment?.PhaseOfEducationCode.ToString() }; return this; diff --git a/Dfe.Academies.Application/Dfe.Academies.Application.csproj b/Dfe.Academies.Application/Dfe.Academies.Application.csproj index 69c7f15be..8ce43b59c 100644 --- a/Dfe.Academies.Application/Dfe.Academies.Application.csproj +++ b/Dfe.Academies.Application/Dfe.Academies.Application.csproj @@ -7,7 +7,7 @@ - + diff --git a/Dfe.Academies.Application/Queries/Trust/TrustQueries.cs b/Dfe.Academies.Application/Queries/Trust/TrustQueries.cs index ade2e1f12..29eefd58a 100644 --- a/Dfe.Academies.Application/Queries/Trust/TrustQueries.cs +++ b/Dfe.Academies.Application/Queries/Trust/TrustQueries.cs @@ -50,6 +50,7 @@ private static TrustDto MapToTrustDto(Domain.Trust.Trust trust) CompaniesHouseNumber = trust.CompaniesHouseNumber, ReferenceNumber = trust.GroupID, Ukprn = trust.UKPRN, + Type = new Contracts.V4.Establishments.NameAndCodeDto() { Code = trust.TrustType.Code, Name = trust.TrustType.Name }, Address = new AddressDto() { Street = trust.AddressLine1, diff --git a/Dfe.Academies.Domain/Dfe.Academies.Domain.csproj b/Dfe.Academies.Domain/Dfe.Academies.Domain.csproj index 2e34a50c0..faddd9152 100644 --- a/Dfe.Academies.Domain/Dfe.Academies.Domain.csproj +++ b/Dfe.Academies.Domain/Dfe.Academies.Domain.csproj @@ -7,7 +7,7 @@ - + diff --git a/Dfe.Academies.Domain/Establishment/Establishment.cs b/Dfe.Academies.Domain/Establishment/Establishment.cs index f42b35a11..9c997f916 100644 --- a/Dfe.Academies.Domain/Establishment/Establishment.cs +++ b/Dfe.Academies.Domain/Establishment/Establishment.cs @@ -95,7 +95,7 @@ public class Establishment public string? GORregionCode { get; set; } public string? ReligiousCharacterCode { get; set; } public string? ParliamentaryConstituencyCode { get; set; } - public string? PhaseOfEducationCode { get; set; } + public int? PhaseOfEducationCode { get; set; } public int? SenUnitCapacity { get; set; } public int? SenUnitOnRoll { get; set; } diff --git a/TramsDataApi.Test/TramsDataApi.Test.csproj b/TramsDataApi.Test/TramsDataApi.Test.csproj index 30d7fe1ba..79e0bea71 100644 --- a/TramsDataApi.Test/TramsDataApi.Test.csproj +++ b/TramsDataApi.Test/TramsDataApi.Test.csproj @@ -16,7 +16,7 @@ - + diff --git a/TramsDataApi/TramsDataApi.csproj b/TramsDataApi/TramsDataApi.csproj index 56090cd49..ad367d03f 100644 --- a/TramsDataApi/TramsDataApi.csproj +++ b/TramsDataApi/TramsDataApi.csproj @@ -6,7 +6,7 @@ - +