From 7f43fd52068ffba46c30c4d354b61529ec135bea Mon Sep 17 00:00:00 2001 From: Dominic NEED Date: Fri, 27 Oct 2023 09:58:31 +0100 Subject: [PATCH] Using a common address for trusts and establishments so swagger can use schema's --- .../Establishments/EstablishmentDto.cs | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/academiesContracts/Dfe.Academies.Contracts/Establishments/EstablishmentDto.cs b/academiesContracts/Dfe.Academies.Contracts/Establishments/EstablishmentDto.cs index c09fc5c..8aeb7f9 100644 --- a/academiesContracts/Dfe.Academies.Contracts/Establishments/EstablishmentDto.cs +++ b/academiesContracts/Dfe.Academies.Contracts/Establishments/EstablishmentDto.cs @@ -1,5 +1,7 @@ namespace Dfe.Academies.Contracts.Establishments; +using Dfe.Academies.Contracts.Trusts; + [Serializable] public class EstablishmentDto { @@ -33,22 +35,6 @@ public class NameAndCodeDto public string Code { get; set; } } -[Serializable] -public class AddressDto -{ - public string Street { get; set; } - - public string Town { get; set; } - - public string County { get; set; } - - public string Postcode { get; set; } - - public string Locality { get; set; } - - public string Additional { get; set; } - -} [Serializable] public class MisEstablishmentDto