From f857ba90f85ca647a860c45b12823c5f7641e7d6 Mon Sep 17 00:00:00 2001 From: prtsie Date: Wed, 21 Aug 2024 16:43:25 +0300 Subject: [PATCH] Fixed namespaces --- .../Services/GeneralExceptions/EntityNotFoundByIdException.cs | 2 +- .../Services/GeneralExceptions/EntityNotFoundException.cs | 2 +- .../GeneralExceptions/EntityUsedInDatabaseException.cs | 2 +- .../Exceptions/CityCanNotBeDeletedException.cs | 2 +- .../RequestHandlers/Exceptions/CountryNotFoundException.cs | 4 ++-- .../Exceptions/ApplicantNotFoundByUserIdException.cs | 4 ++-- .../Infrastructure/Database/Generic/GenericRepository.cs | 2 +- .../ExceptionFilters/GlobalExceptionsFilter.cs | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/SchengenVisaApi/ApplicationLayer/Services/GeneralExceptions/EntityNotFoundByIdException.cs b/SchengenVisaApi/ApplicationLayer/Services/GeneralExceptions/EntityNotFoundByIdException.cs index d7637aa..d3155fe 100644 --- a/SchengenVisaApi/ApplicationLayer/Services/GeneralExceptions/EntityNotFoundByIdException.cs +++ b/SchengenVisaApi/ApplicationLayer/Services/GeneralExceptions/EntityNotFoundByIdException.cs @@ -1,6 +1,6 @@ using Domains; -namespace Infrastructure.Database.GeneralExceptions; +namespace ApplicationLayer.Services.GeneralExceptions; /// Exception to throw when entity not found /// Identifier of entity diff --git a/SchengenVisaApi/ApplicationLayer/Services/GeneralExceptions/EntityNotFoundException.cs b/SchengenVisaApi/ApplicationLayer/Services/GeneralExceptions/EntityNotFoundException.cs index 37de24f..4f4acca 100644 --- a/SchengenVisaApi/ApplicationLayer/Services/GeneralExceptions/EntityNotFoundException.cs +++ b/SchengenVisaApi/ApplicationLayer/Services/GeneralExceptions/EntityNotFoundException.cs @@ -1,7 +1,7 @@ using ApplicationLayer.GeneralExceptions; using Domains; -namespace Infrastructure.Database.GeneralExceptions; +namespace ApplicationLayer.Services.GeneralExceptions; /// Exception to throw when entity not found /// Not found entity type diff --git a/SchengenVisaApi/ApplicationLayer/Services/GeneralExceptions/EntityUsedInDatabaseException.cs b/SchengenVisaApi/ApplicationLayer/Services/GeneralExceptions/EntityUsedInDatabaseException.cs index 6aa2958..74c0a55 100644 --- a/SchengenVisaApi/ApplicationLayer/Services/GeneralExceptions/EntityUsedInDatabaseException.cs +++ b/SchengenVisaApi/ApplicationLayer/Services/GeneralExceptions/EntityUsedInDatabaseException.cs @@ -1,6 +1,6 @@ using ApplicationLayer.GeneralExceptions; -namespace Infrastructure.Database.GeneralExceptions +namespace ApplicationLayer.Services.GeneralExceptions { /// Exception to throw when can't complete some action on entity(delete or something) because it's needed for other entities public class EntityUsedInDatabaseException(string message) : ApiException(message); diff --git a/SchengenVisaApi/ApplicationLayer/Services/Locations/RequestHandlers/Exceptions/CityCanNotBeDeletedException.cs b/SchengenVisaApi/ApplicationLayer/Services/Locations/RequestHandlers/Exceptions/CityCanNotBeDeletedException.cs index ba3b7ed..47a294b 100644 --- a/SchengenVisaApi/ApplicationLayer/Services/Locations/RequestHandlers/Exceptions/CityCanNotBeDeletedException.cs +++ b/SchengenVisaApi/ApplicationLayer/Services/Locations/RequestHandlers/Exceptions/CityCanNotBeDeletedException.cs @@ -1,4 +1,4 @@ -using Infrastructure.Database.GeneralExceptions; +using ApplicationLayer.Services.GeneralExceptions; namespace ApplicationLayer.Services.Locations.RequestHandlers.Exceptions { diff --git a/SchengenVisaApi/ApplicationLayer/Services/Locations/RequestHandlers/Exceptions/CountryNotFoundException.cs b/SchengenVisaApi/ApplicationLayer/Services/Locations/RequestHandlers/Exceptions/CountryNotFoundException.cs index c4fa367..aae4508 100644 --- a/SchengenVisaApi/ApplicationLayer/Services/Locations/RequestHandlers/Exceptions/CountryNotFoundException.cs +++ b/SchengenVisaApi/ApplicationLayer/Services/Locations/RequestHandlers/Exceptions/CountryNotFoundException.cs @@ -1,5 +1,5 @@ -using Domains.LocationDomain; -using Infrastructure.Database.GeneralExceptions; +using ApplicationLayer.Services.GeneralExceptions; +using Domains.LocationDomain; namespace ApplicationLayer.Services.Locations.RequestHandlers.Exceptions { diff --git a/SchengenVisaApi/Infrastructure/Database/Applicants/Repositories/Exceptions/ApplicantNotFoundByUserIdException.cs b/SchengenVisaApi/Infrastructure/Database/Applicants/Repositories/Exceptions/ApplicantNotFoundByUserIdException.cs index 9e8d6a1..52e7046 100644 --- a/SchengenVisaApi/Infrastructure/Database/Applicants/Repositories/Exceptions/ApplicantNotFoundByUserIdException.cs +++ b/SchengenVisaApi/Infrastructure/Database/Applicants/Repositories/Exceptions/ApplicantNotFoundByUserIdException.cs @@ -1,5 +1,5 @@ -using Domains.ApplicantDomain; -using Infrastructure.Database.GeneralExceptions; +using ApplicationLayer.Services.GeneralExceptions; +using Domains.ApplicantDomain; namespace Infrastructure.Database.Applicants.Repositories.Exceptions { diff --git a/SchengenVisaApi/Infrastructure/Database/Generic/GenericRepository.cs b/SchengenVisaApi/Infrastructure/Database/Generic/GenericRepository.cs index 937e0dd..04aee34 100644 --- a/SchengenVisaApi/Infrastructure/Database/Generic/GenericRepository.cs +++ b/SchengenVisaApi/Infrastructure/Database/Generic/GenericRepository.cs @@ -1,6 +1,6 @@ using ApplicationLayer.InfrastructureServicesInterfaces; +using ApplicationLayer.Services.GeneralExceptions; using Domains; -using Infrastructure.Database.GeneralExceptions; using Microsoft.EntityFrameworkCore; namespace Infrastructure.Database.Generic; diff --git a/SchengenVisaApi/SchengenVisaApi/ExceptionFilters/GlobalExceptionsFilter.cs b/SchengenVisaApi/SchengenVisaApi/ExceptionFilters/GlobalExceptionsFilter.cs index 781cd2e..09b11d0 100644 --- a/SchengenVisaApi/SchengenVisaApi/ExceptionFilters/GlobalExceptionsFilter.cs +++ b/SchengenVisaApi/SchengenVisaApi/ExceptionFilters/GlobalExceptionsFilter.cs @@ -1,8 +1,8 @@ using ApplicationLayer.GeneralExceptions; using ApplicationLayer.Services.AuthServices.LoginService.Exceptions; +using ApplicationLayer.Services.GeneralExceptions; using ApplicationLayer.Services.Locations.RequestHandlers.Exceptions; using Domains; -using Infrastructure.Database.GeneralExceptions; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters;