Renamed folder
This commit is contained in:
		| @@ -15,7 +15,7 @@ | |||||||
|     </ItemGroup> |     </ItemGroup> | ||||||
|  |  | ||||||
|     <ItemGroup> |     <ItemGroup> | ||||||
|       <Folder Include="DataAccessingServices\" /> |       <Folder Include="Services\" /> | ||||||
|     </ItemGroup> |     </ItemGroup> | ||||||
|  |  | ||||||
| </Project> | </Project> | ||||||
|   | |||||||
| @@ -1,7 +0,0 @@ | |||||||
| using ApplicationLayer.DataAccessingServices.AuthServices.Requests; |  | ||||||
| using ApplicationLayer.GeneralExceptions; |  | ||||||
|  |  | ||||||
| namespace ApplicationLayer.DataAccessingServices.AuthServices.RegisterService.Exceptions |  | ||||||
| { |  | ||||||
|     public class UserAlreadyExistsException(RegisterApplicantRequest request) : AlreadyExistsException($"User with email '{request.Email}' already exists"); |  | ||||||
| } |  | ||||||
| @@ -1,4 +0,0 @@ | |||||||
| namespace ApplicationLayer.DataAccessingServices.AuthServices.Requests |  | ||||||
| { |  | ||||||
|     public record UserLoginRequest(string Email, string Password); |  | ||||||
| } |  | ||||||
| @@ -1,8 +1,8 @@ | |||||||
| using ApplicationLayer.DataAccessingServices.AuthServices.LoginService; | using ApplicationLayer.Services.AuthServices.LoginService; | ||||||
| using ApplicationLayer.DataAccessingServices.AuthServices.RegisterService; | using ApplicationLayer.Services.AuthServices.RegisterService; | ||||||
| using ApplicationLayer.DataAccessingServices.Locations.RequestHandlers.AdminRequests; | using ApplicationLayer.Services.Locations.RequestHandlers.AdminRequests; | ||||||
| using ApplicationLayer.DataAccessingServices.Locations.RequestHandlers.ApplicantRequests; | using ApplicationLayer.Services.Locations.RequestHandlers.ApplicantRequests; | ||||||
| using ApplicationLayer.DataAccessingServices.VisaApplications.Handlers; | using ApplicationLayer.Services.VisaApplications.Handlers; | ||||||
| using Microsoft.Extensions.DependencyInjection; | using Microsoft.Extensions.DependencyInjection; | ||||||
|  |  | ||||||
| namespace ApplicationLayer; | namespace ApplicationLayer; | ||||||
|   | |||||||
| @@ -1,4 +1,4 @@ | |||||||
| namespace ApplicationLayer.DataAccessingServices.Applicants.Models; | namespace ApplicationLayer.Services.Applicants.Models; | ||||||
| 
 | 
 | ||||||
| public class AddressModel | public class AddressModel | ||||||
| { | { | ||||||
| @@ -1,4 +1,4 @@ | |||||||
| namespace ApplicationLayer.DataAccessingServices.Applicants.Models; | namespace ApplicationLayer.Services.Applicants.Models; | ||||||
| 
 | 
 | ||||||
| public class PlaceOfWorkModel | public class PlaceOfWorkModel | ||||||
| { | { | ||||||
| @@ -1,7 +1,7 @@ | |||||||
| using ApplicationLayer.GeneralNeededServices; | using ApplicationLayer.GeneralNeededServices; | ||||||
| using Domains.ApplicantDomain; | using Domains.ApplicantDomain; | ||||||
| 
 | 
 | ||||||
| namespace ApplicationLayer.DataAccessingServices.Applicants.NeededServices; | namespace ApplicationLayer.Services.Applicants.NeededServices; | ||||||
| 
 | 
 | ||||||
| /// Repository pattern for <see cref="Applicant"/> | /// Repository pattern for <see cref="Applicant"/> | ||||||
| public interface IApplicantsRepository : IGenericRepository<Applicant> | public interface IApplicantsRepository : IGenericRepository<Applicant> | ||||||
| @@ -1,9 +1,9 @@ | |||||||
| using ApplicationLayer.DataAccessingServices.AuthServices.LoginService.Exceptions; | using ApplicationLayer.Services.AuthServices.LoginService.Exceptions; | ||||||
| using ApplicationLayer.DataAccessingServices.AuthServices.NeededServices; | using ApplicationLayer.Services.AuthServices.NeededServices; | ||||||
| using ApplicationLayer.DataAccessingServices.AuthServices.Requests; | using ApplicationLayer.Services.AuthServices.Requests; | ||||||
| using Domains.Users; | using Domains.Users; | ||||||
| 
 | 
 | ||||||
| namespace ApplicationLayer.DataAccessingServices.AuthServices.LoginService | namespace ApplicationLayer.Services.AuthServices.LoginService | ||||||
| { | { | ||||||
|     public class DevelopmentLoginService(IUsersRepository users, ITokenGenerator tokenGenerator) : ILoginService |     public class DevelopmentLoginService(IUsersRepository users, ITokenGenerator tokenGenerator) : ILoginService | ||||||
|     { |     { | ||||||
| @@ -1,6 +1,6 @@ | |||||||
| using ApplicationLayer.GeneralExceptions; | using ApplicationLayer.GeneralExceptions; | ||||||
| 
 | 
 | ||||||
| namespace ApplicationLayer.DataAccessingServices.AuthServices.LoginService.Exceptions | namespace ApplicationLayer.Services.AuthServices.LoginService.Exceptions | ||||||
| { | { | ||||||
|     public class IncorrectLoginDataException() : ApiException("Incorrect email or password"); |     public class IncorrectLoginDataException() : ApiException("Incorrect email or password"); | ||||||
| } | } | ||||||
| @@ -1,6 +1,6 @@ | |||||||
| using ApplicationLayer.DataAccessingServices.AuthServices.Requests; | using ApplicationLayer.Services.AuthServices.Requests; | ||||||
| 
 | 
 | ||||||
| namespace ApplicationLayer.DataAccessingServices.AuthServices.LoginService | namespace ApplicationLayer.Services.AuthServices.LoginService | ||||||
| { | { | ||||||
|     /// Handles <see cref="UserLoginRequest"/> |     /// Handles <see cref="UserLoginRequest"/> | ||||||
|     public interface ILoginService |     public interface ILoginService | ||||||
| @@ -1,8 +1,8 @@ | |||||||
| using ApplicationLayer.DataAccessingServices.AuthServices.LoginService.Exceptions; | using ApplicationLayer.Services.AuthServices.LoginService.Exceptions; | ||||||
| using ApplicationLayer.DataAccessingServices.AuthServices.NeededServices; | using ApplicationLayer.Services.AuthServices.NeededServices; | ||||||
| using ApplicationLayer.DataAccessingServices.AuthServices.Requests; | using ApplicationLayer.Services.AuthServices.Requests; | ||||||
| 
 | 
 | ||||||
| namespace ApplicationLayer.DataAccessingServices.AuthServices.LoginService | namespace ApplicationLayer.Services.AuthServices.LoginService | ||||||
| { | { | ||||||
|     /// <inheritdoc cref="ILoginService"/> |     /// <inheritdoc cref="ILoginService"/> | ||||||
|     public class LoginService(IUsersRepository users, ITokenGenerator tokenGenerator) : ILoginService |     public class LoginService(IUsersRepository users, ITokenGenerator tokenGenerator) : ILoginService | ||||||
| @@ -1,6 +1,6 @@ | |||||||
| using Domains.Users; | using Domains.Users; | ||||||
| 
 | 
 | ||||||
| namespace ApplicationLayer.DataAccessingServices.AuthServices.NeededServices | namespace ApplicationLayer.Services.AuthServices.NeededServices | ||||||
| { | { | ||||||
|     public interface ITokenGenerator |     public interface ITokenGenerator | ||||||
|     { |     { | ||||||
| @@ -1,7 +1,7 @@ | |||||||
| using ApplicationLayer.GeneralNeededServices; | using ApplicationLayer.GeneralNeededServices; | ||||||
| using Domains.Users; | using Domains.Users; | ||||||
| 
 | 
 | ||||||
| namespace ApplicationLayer.DataAccessingServices.AuthServices.NeededServices | namespace ApplicationLayer.Services.AuthServices.NeededServices | ||||||
| { | { | ||||||
|     /// Repository pattern for <see cref="User"/> |     /// Repository pattern for <see cref="User"/> | ||||||
|     public interface IUsersRepository : IGenericRepository<User> |     public interface IUsersRepository : IGenericRepository<User> | ||||||
| @@ -0,0 +1,7 @@ | |||||||
|  | using ApplicationLayer.GeneralExceptions; | ||||||
|  | using ApplicationLayer.Services.AuthServices.Requests; | ||||||
|  |  | ||||||
|  | namespace ApplicationLayer.Services.AuthServices.RegisterService.Exceptions | ||||||
|  | { | ||||||
|  |     public class UserAlreadyExistsException(RegisterApplicantRequest request) : AlreadyExistsException($"User with email '{request.Email}' already exists"); | ||||||
|  | } | ||||||
| @@ -1,6 +1,6 @@ | |||||||
| using ApplicationLayer.DataAccessingServices.AuthServices.Requests; | using ApplicationLayer.Services.AuthServices.Requests; | ||||||
| 
 | 
 | ||||||
| namespace ApplicationLayer.DataAccessingServices.AuthServices.RegisterService | namespace ApplicationLayer.Services.AuthServices.RegisterService | ||||||
| { | { | ||||||
|     /// Handles <see cref="RegisterApplicantRequest"/> |     /// Handles <see cref="RegisterApplicantRequest"/> | ||||||
|     public interface IRegisterService |     public interface IRegisterService | ||||||
| @@ -1,13 +1,13 @@ | |||||||
| using ApplicationLayer.DataAccessingServices.Applicants.NeededServices; | using ApplicationLayer.GeneralNeededServices; | ||||||
| using ApplicationLayer.DataAccessingServices.AuthServices.NeededServices; | using ApplicationLayer.Services.Applicants.NeededServices; | ||||||
| using ApplicationLayer.DataAccessingServices.AuthServices.RegisterService.Exceptions; | using ApplicationLayer.Services.AuthServices.NeededServices; | ||||||
| using ApplicationLayer.DataAccessingServices.AuthServices.Requests; | using ApplicationLayer.Services.AuthServices.RegisterService.Exceptions; | ||||||
| using ApplicationLayer.DataAccessingServices.Locations.NeededServices; | using ApplicationLayer.Services.AuthServices.Requests; | ||||||
| using ApplicationLayer.GeneralNeededServices; | using ApplicationLayer.Services.Locations.NeededServices; | ||||||
| using Domains.ApplicantDomain; | using Domains.ApplicantDomain; | ||||||
| using Domains.Users; | using Domains.Users; | ||||||
| 
 | 
 | ||||||
| namespace ApplicationLayer.DataAccessingServices.AuthServices.RegisterService | namespace ApplicationLayer.Services.AuthServices.RegisterService | ||||||
| { | { | ||||||
|     /// <inheritdoc cref="IRegisterService"/> |     /// <inheritdoc cref="IRegisterService"/> | ||||||
|     public class RegisterService( |     public class RegisterService( | ||||||
| @@ -1,7 +1,7 @@ | |||||||
| using ApplicationLayer.DataAccessingServices.Applicants.Models; | using ApplicationLayer.Services.Applicants.Models; | ||||||
| using Domains.ApplicantDomain; | using Domains.ApplicantDomain; | ||||||
| 
 | 
 | ||||||
| namespace ApplicationLayer.DataAccessingServices.AuthServices.Requests | namespace ApplicationLayer.Services.AuthServices.Requests | ||||||
| { | { | ||||||
|     public record RegisterApplicantRequest( |     public record RegisterApplicantRequest( | ||||||
|         string Email, |         string Email, | ||||||
| @@ -0,0 +1,4 @@ | |||||||
|  | namespace ApplicationLayer.Services.AuthServices.Requests | ||||||
|  | { | ||||||
|  |     public record UserLoginRequest(string Email, string Password); | ||||||
|  | } | ||||||
| @@ -1,6 +1,6 @@ | |||||||
| using ApplicationLayer.GeneralNeededServices; | using ApplicationLayer.GeneralNeededServices; | ||||||
| using Domains.LocationDomain; | using Domains.LocationDomain; | ||||||
| 
 | 
 | ||||||
| namespace ApplicationLayer.DataAccessingServices.Locations.NeededServices; | namespace ApplicationLayer.Services.Locations.NeededServices; | ||||||
| 
 | 
 | ||||||
| public interface ICitiesRepository : IGenericRepository<City>; | public interface ICitiesRepository : IGenericRepository<City>; | ||||||
| @@ -1,7 +1,7 @@ | |||||||
| using ApplicationLayer.GeneralNeededServices; | using ApplicationLayer.GeneralNeededServices; | ||||||
| using Domains.LocationDomain; | using Domains.LocationDomain; | ||||||
| 
 | 
 | ||||||
| namespace ApplicationLayer.DataAccessingServices.Locations.NeededServices; | namespace ApplicationLayer.Services.Locations.NeededServices; | ||||||
| 
 | 
 | ||||||
| public interface ICountriesRepository : IGenericRepository<Country> | public interface ICountriesRepository : IGenericRepository<Country> | ||||||
| { | { | ||||||
| @@ -1,10 +1,10 @@ | |||||||
| using ApplicationLayer.DataAccessingServices.Locations.NeededServices; | using ApplicationLayer.GeneralNeededServices; | ||||||
| using ApplicationLayer.DataAccessingServices.Locations.RequestHandlers.AdminRequests.Exceptions; | using ApplicationLayer.Services.Locations.NeededServices; | ||||||
| using ApplicationLayer.DataAccessingServices.Locations.Requests; | using ApplicationLayer.Services.Locations.RequestHandlers.AdminRequests.Exceptions; | ||||||
| using ApplicationLayer.GeneralNeededServices; | using ApplicationLayer.Services.Locations.Requests; | ||||||
| using Domains.LocationDomain; | using Domains.LocationDomain; | ||||||
| 
 | 
 | ||||||
| namespace ApplicationLayer.DataAccessingServices.Locations.RequestHandlers.AdminRequests | namespace ApplicationLayer.Services.Locations.RequestHandlers.AdminRequests | ||||||
| { | { | ||||||
|     /// <inheritdoc cref="IEditLocationsRequestsHandler"/> |     /// <inheritdoc cref="IEditLocationsRequestsHandler"/> | ||||||
|     public class EditLocationsRequestsHandler(ICountriesRepository countries, IUnitOfWork unitOfWork) : IEditLocationsRequestsHandler |     public class EditLocationsRequestsHandler(ICountriesRepository countries, IUnitOfWork unitOfWork) : IEditLocationsRequestsHandler | ||||||
| @@ -1,6 +1,6 @@ | |||||||
| using ApplicationLayer.GeneralExceptions; | using ApplicationLayer.GeneralExceptions; | ||||||
| 
 | 
 | ||||||
| namespace ApplicationLayer.DataAccessingServices.Locations.RequestHandlers.AdminRequests.Exceptions | namespace ApplicationLayer.Services.Locations.RequestHandlers.AdminRequests.Exceptions | ||||||
| { | { | ||||||
|     public class CountryAlreadyExists(string countryName) : AlreadyExistsException($"{countryName} already exists."); |     public class CountryAlreadyExists(string countryName) : AlreadyExistsException($"{countryName} already exists."); | ||||||
| } | } | ||||||
| @@ -1,6 +1,6 @@ | |||||||
| using ApplicationLayer.GeneralExceptions; | using ApplicationLayer.GeneralExceptions; | ||||||
| 
 | 
 | ||||||
| namespace ApplicationLayer.DataAccessingServices.Locations.RequestHandlers.AdminRequests.Exceptions | namespace ApplicationLayer.Services.Locations.RequestHandlers.AdminRequests.Exceptions | ||||||
| { | { | ||||||
|     public class MultipleIdenticalCitiesInCountryException() : ApiException("There are multiple cities with one name in the country."); |     public class MultipleIdenticalCitiesInCountryException() : ApiException("There are multiple cities with one name in the country."); | ||||||
| } | } | ||||||
| @@ -1,6 +1,6 @@ | |||||||
| using ApplicationLayer.DataAccessingServices.Locations.Requests; | using ApplicationLayer.Services.Locations.Requests; | ||||||
| 
 | 
 | ||||||
| namespace ApplicationLayer.DataAccessingServices.Locations.RequestHandlers.AdminRequests | namespace ApplicationLayer.Services.Locations.RequestHandlers.AdminRequests | ||||||
| { | { | ||||||
|     /// Handles edit requests of locations from admins |     /// Handles edit requests of locations from admins | ||||||
|     public interface IEditLocationsRequestsHandler |     public interface IEditLocationsRequestsHandler | ||||||
| @@ -1,6 +1,6 @@ | |||||||
| using Domains.LocationDomain; | using Domains.LocationDomain; | ||||||
| 
 | 
 | ||||||
| namespace ApplicationLayer.DataAccessingServices.Locations.RequestHandlers.ApplicantRequests | namespace ApplicationLayer.Services.Locations.RequestHandlers.ApplicantRequests | ||||||
| { | { | ||||||
|     /// Handles location requests |     /// Handles location requests | ||||||
|     public interface ILocationRequestsHandler |     public interface ILocationRequestsHandler | ||||||
| @@ -1,7 +1,7 @@ | |||||||
| using ApplicationLayer.DataAccessingServices.Locations.NeededServices; | using ApplicationLayer.Services.Locations.NeededServices; | ||||||
| using Domains.LocationDomain; | using Domains.LocationDomain; | ||||||
| 
 | 
 | ||||||
| namespace ApplicationLayer.DataAccessingServices.Locations.RequestHandlers.ApplicantRequests | namespace ApplicationLayer.Services.Locations.RequestHandlers.ApplicantRequests | ||||||
| { | { | ||||||
|     /// <inheritdoc cref="ILocationRequestsHandler"/> |     /// <inheritdoc cref="ILocationRequestsHandler"/> | ||||||
|     public class LocationRequestsHandler(ICountriesRepository countries) : ILocationRequestsHandler |     public class LocationRequestsHandler(ICountriesRepository countries) : ILocationRequestsHandler | ||||||
| @@ -1,4 +1,4 @@ | |||||||
| namespace ApplicationLayer.DataAccessingServices.Locations.Requests | namespace ApplicationLayer.Services.Locations.Requests | ||||||
| { | { | ||||||
|     public record AddCountryRequest(string CountryName, bool IsSchengen, string[] Cities); |     public record AddCountryRequest(string CountryName, bool IsSchengen, string[] Cities); | ||||||
| } | } | ||||||
| @@ -1,7 +1,7 @@ | |||||||
| using ApplicationLayer.DataAccessingServices.VisaApplications.Requests; | using ApplicationLayer.Services.VisaApplications.Requests; | ||||||
| using Domains.VisaApplicationDomain; | using Domains.VisaApplicationDomain; | ||||||
| 
 | 
 | ||||||
| namespace ApplicationLayer.DataAccessingServices.VisaApplications.Handlers; | namespace ApplicationLayer.Services.VisaApplications.Handlers; | ||||||
| 
 | 
 | ||||||
| public interface IVisaApplicationRequestsHandler | public interface IVisaApplicationRequestsHandler | ||||||
| { | { | ||||||
| @@ -1,12 +1,12 @@ | |||||||
| using ApplicationLayer.DataAccessingServices.Applicants.NeededServices; | using ApplicationLayer.GeneralNeededServices; | ||||||
| using ApplicationLayer.DataAccessingServices.Locations.NeededServices; | using ApplicationLayer.Services.Applicants.NeededServices; | ||||||
| using ApplicationLayer.DataAccessingServices.VisaApplications.Models; | using ApplicationLayer.Services.Locations.NeededServices; | ||||||
| using ApplicationLayer.DataAccessingServices.VisaApplications.NeededServices; | using ApplicationLayer.Services.VisaApplications.Models; | ||||||
| using ApplicationLayer.DataAccessingServices.VisaApplications.Requests; | using ApplicationLayer.Services.VisaApplications.NeededServices; | ||||||
| using ApplicationLayer.GeneralNeededServices; | using ApplicationLayer.Services.VisaApplications.Requests; | ||||||
| using Domains.VisaApplicationDomain; | using Domains.VisaApplicationDomain; | ||||||
| 
 | 
 | ||||||
| namespace ApplicationLayer.DataAccessingServices.VisaApplications.Handlers; | namespace ApplicationLayer.Services.VisaApplications.Handlers; | ||||||
| 
 | 
 | ||||||
| /// Handles visa requests | /// Handles visa requests | ||||||
| public class VisaApplicationRequestsHandler( | public class VisaApplicationRequestsHandler( | ||||||
| @@ -1,4 +1,4 @@ | |||||||
| namespace ApplicationLayer.DataAccessingServices.VisaApplications.Models | namespace ApplicationLayer.Services.VisaApplications.Models | ||||||
| { | { | ||||||
|     public class PastVisitModel |     public class PastVisitModel | ||||||
|     { |     { | ||||||
| @@ -1,6 +1,6 @@ | |||||||
| using ApplicationLayer.GeneralNeededServices; | using ApplicationLayer.GeneralNeededServices; | ||||||
| using Domains.VisaApplicationDomain; | using Domains.VisaApplicationDomain; | ||||||
| 
 | 
 | ||||||
| namespace ApplicationLayer.DataAccessingServices.VisaApplications.NeededServices; | namespace ApplicationLayer.Services.VisaApplications.NeededServices; | ||||||
| 
 | 
 | ||||||
| public interface IVisaApplicationsRepository : IGenericRepository<VisaApplication>; | public interface IVisaApplicationsRepository : IGenericRepository<VisaApplication>; | ||||||
| @@ -1,7 +1,7 @@ | |||||||
| using ApplicationLayer.DataAccessingServices.VisaApplications.Models; | using ApplicationLayer.Services.VisaApplications.Models; | ||||||
| using Domains.VisaApplicationDomain; | using Domains.VisaApplicationDomain; | ||||||
| 
 | 
 | ||||||
| namespace ApplicationLayer.DataAccessingServices.VisaApplications.Requests; | namespace ApplicationLayer.Services.VisaApplications.Requests; | ||||||
| 
 | 
 | ||||||
| /// Model of visa request from user | /// Model of visa request from user | ||||||
| public record VisaApplicationCreateRequest( | public record VisaApplicationCreateRequest( | ||||||
| @@ -1,6 +1,6 @@ | |||||||
| using System.IdentityModel.Tokens.Jwt; | using System.IdentityModel.Tokens.Jwt; | ||||||
| using ApplicationLayer.DataAccessingServices.AuthServices.NeededServices; |  | ||||||
| using ApplicationLayer.GeneralNeededServices; | using ApplicationLayer.GeneralNeededServices; | ||||||
|  | using ApplicationLayer.Services.AuthServices.NeededServices; | ||||||
| using Microsoft.Extensions.DependencyInjection; | using Microsoft.Extensions.DependencyInjection; | ||||||
|  |  | ||||||
| namespace Infrastructure.Auth | namespace Infrastructure.Auth | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| using System.IdentityModel.Tokens.Jwt; | using System.IdentityModel.Tokens.Jwt; | ||||||
| using System.Security.Claims; | using System.Security.Claims; | ||||||
| using ApplicationLayer.DataAccessingServices.AuthServices.NeededServices; |  | ||||||
| using ApplicationLayer.GeneralNeededServices; | using ApplicationLayer.GeneralNeededServices; | ||||||
|  | using ApplicationLayer.Services.AuthServices.NeededServices; | ||||||
| using Domains.Users; | using Domains.Users; | ||||||
|  |  | ||||||
| namespace Infrastructure.Auth | namespace Infrastructure.Auth | ||||||
|   | |||||||
| @@ -1,4 +1,4 @@ | |||||||
| using ApplicationLayer.DataAccessingServices.Applicants.NeededServices; | using ApplicationLayer.Services.Applicants.NeededServices; | ||||||
| using Domains.ApplicantDomain; | using Domains.ApplicantDomain; | ||||||
| using Infrastructure.Database.Applicants.Repositories.Exceptions; | using Infrastructure.Database.Applicants.Repositories.Exceptions; | ||||||
| using Infrastructure.Database.Generic; | using Infrastructure.Database.Generic; | ||||||
|   | |||||||
| @@ -1,4 +1,4 @@ | |||||||
| using ApplicationLayer.DataAccessingServices.Locations.NeededServices; | using ApplicationLayer.Services.Locations.NeededServices; | ||||||
| using Domains.LocationDomain; | using Domains.LocationDomain; | ||||||
| using Infrastructure.Database.Generic; | using Infrastructure.Database.Generic; | ||||||
| using Microsoft.EntityFrameworkCore; | using Microsoft.EntityFrameworkCore; | ||||||
|   | |||||||
| @@ -1,4 +1,4 @@ | |||||||
| using ApplicationLayer.DataAccessingServices.Locations.NeededServices; | using ApplicationLayer.Services.Locations.NeededServices; | ||||||
| using Domains.LocationDomain; | using Domains.LocationDomain; | ||||||
| using Infrastructure.Database.Generic; | using Infrastructure.Database.Generic; | ||||||
| using Microsoft.EntityFrameworkCore; | using Microsoft.EntityFrameworkCore; | ||||||
|   | |||||||
| @@ -1,4 +1,4 @@ | |||||||
| using ApplicationLayer.DataAccessingServices.AuthServices.NeededServices; | using ApplicationLayer.Services.AuthServices.NeededServices; | ||||||
| using Domains.Users; | using Domains.Users; | ||||||
| using Infrastructure.Database.Generic; | using Infrastructure.Database.Generic; | ||||||
| using Microsoft.EntityFrameworkCore; | using Microsoft.EntityFrameworkCore; | ||||||
|   | |||||||
| @@ -1,4 +1,4 @@ | |||||||
| using ApplicationLayer.DataAccessingServices.VisaApplications.NeededServices; | using ApplicationLayer.Services.VisaApplications.NeededServices; | ||||||
| using Domains.VisaApplicationDomain; | using Domains.VisaApplicationDomain; | ||||||
| using Infrastructure.Database.Generic; | using Infrastructure.Database.Generic; | ||||||
| using Microsoft.EntityFrameworkCore; | using Microsoft.EntityFrameworkCore; | ||||||
|   | |||||||
| @@ -1,8 +1,8 @@ | |||||||
| using ApplicationLayer.DataAccessingServices.Applicants.NeededServices; | using ApplicationLayer.GeneralNeededServices; | ||||||
| using ApplicationLayer.DataAccessingServices.AuthServices.NeededServices; | using ApplicationLayer.Services.Applicants.NeededServices; | ||||||
| using ApplicationLayer.DataAccessingServices.Locations.NeededServices; | using ApplicationLayer.Services.AuthServices.NeededServices; | ||||||
| using ApplicationLayer.DataAccessingServices.VisaApplications.NeededServices; | using ApplicationLayer.Services.Locations.NeededServices; | ||||||
| using ApplicationLayer.GeneralNeededServices; | using ApplicationLayer.Services.VisaApplications.NeededServices; | ||||||
| using Infrastructure.Common; | using Infrastructure.Common; | ||||||
| using Infrastructure.Database.Applicants.Repositories; | using Infrastructure.Database.Applicants.Repositories; | ||||||
| using Infrastructure.Database.Generic; | using Infrastructure.Database.Generic; | ||||||
|   | |||||||
| @@ -1,5 +1,5 @@ | |||||||
| using ApplicationLayer.DataAccessingServices.Locations.RequestHandlers.AdminRequests; | using ApplicationLayer.Services.Locations.RequestHandlers.AdminRequests; | ||||||
| using ApplicationLayer.DataAccessingServices.Locations.Requests; | using ApplicationLayer.Services.Locations.Requests; | ||||||
| using Microsoft.AspNetCore.Authorization; | using Microsoft.AspNetCore.Authorization; | ||||||
| using Microsoft.AspNetCore.Mvc; | using Microsoft.AspNetCore.Mvc; | ||||||
| using SchengenVisaApi.Common; | using SchengenVisaApi.Common; | ||||||
| @@ -18,5 +18,13 @@ namespace SchengenVisaApi.Controllers | |||||||
|             await requestsHandler.AddCountryAsync(request, cancellationToken); |             await requestsHandler.AddCountryAsync(request, cancellationToken); | ||||||
|             return Ok(); |             return Ok(); | ||||||
|         } |         } | ||||||
|  |  | ||||||
|  |         [HttpPost] | ||||||
|  |         [Route("authorities")] | ||||||
|  |         public async Task<IActionResult> AddAuthority(AddCountryRequest request, CancellationToken cancellationToken) | ||||||
|  |         { | ||||||
|  |             await requestsHandler.AddCountryAsync(request, cancellationToken); | ||||||
|  |             return Ok(); | ||||||
|  |         } | ||||||
|     } |     } | ||||||
| } | } | ||||||
|   | |||||||
| @@ -1,4 +1,4 @@ | |||||||
| using ApplicationLayer.DataAccessingServices.Locations.RequestHandlers.ApplicantRequests; | using ApplicationLayer.Services.Locations.RequestHandlers.ApplicantRequests; | ||||||
| using Microsoft.AspNetCore.Mvc; | using Microsoft.AspNetCore.Mvc; | ||||||
|  |  | ||||||
| namespace SchengenVisaApi.Controllers | namespace SchengenVisaApi.Controllers | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| using ApplicationLayer.DataAccessingServices.AuthServices.LoginService; | using ApplicationLayer.Services.AuthServices.LoginService; | ||||||
| using ApplicationLayer.DataAccessingServices.AuthServices.RegisterService; | using ApplicationLayer.Services.AuthServices.RegisterService; | ||||||
| using ApplicationLayer.DataAccessingServices.AuthServices.Requests; | using ApplicationLayer.Services.AuthServices.Requests; | ||||||
| using Microsoft.AspNetCore.Mvc; | using Microsoft.AspNetCore.Mvc; | ||||||
|  |  | ||||||
| namespace SchengenVisaApi.Controllers | namespace SchengenVisaApi.Controllers | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| using System.Security.Claims; | using System.Security.Claims; | ||||||
| using ApplicationLayer.DataAccessingServices.VisaApplications.Handlers; | using ApplicationLayer.Services.VisaApplications.Handlers; | ||||||
| using ApplicationLayer.DataAccessingServices.VisaApplications.Requests; | using ApplicationLayer.Services.VisaApplications.Requests; | ||||||
| using Microsoft.AspNetCore.Authorization; | using Microsoft.AspNetCore.Authorization; | ||||||
| using Microsoft.AspNetCore.Mvc; | using Microsoft.AspNetCore.Mvc; | ||||||
| using SchengenVisaApi.Common; | using SchengenVisaApi.Common; | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| using ApplicationLayer.DataAccessingServices.AuthServices.LoginService.Exceptions; | using ApplicationLayer.GeneralExceptions; | ||||||
| using ApplicationLayer.DataAccessingServices.Locations.RequestHandlers.AdminRequests.Exceptions; | using ApplicationLayer.Services.AuthServices.LoginService.Exceptions; | ||||||
| using ApplicationLayer.GeneralExceptions; | using ApplicationLayer.Services.Locations.RequestHandlers.AdminRequests.Exceptions; | ||||||
| using Domains; | using Domains; | ||||||
| using Infrastructure.Database.GeneralExceptions; | using Infrastructure.Database.GeneralExceptions; | ||||||
| using Microsoft.AspNetCore.Mvc; | using Microsoft.AspNetCore.Mvc; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user