From 49a989ad3d49d1f3970acf992612f919e87b2ccb Mon Sep 17 00:00:00 2001 From: IgorRakityanskiy Date: Wed, 6 Jul 2022 22:15:24 +0300 Subject: [PATCH] Add more namespaces to global usings --- .../Common/Exceptions/FileStorageException.cs | 5 +---- .../Contexts/GcpStorageContext.cs | 3 --- .../Contexts/IGcpStorageContext.cs | 2 -- .../OutOfSchool.DataAccess/Contexts/MongoDb.cs | 3 +-- .../OutOfSchool.DataAccess/Enums/DaysBitMask.cs | 1 - .../Extensions/DbContextExtensions.cs | 5 +---- .../Extensions/DbSetExtensions.cs | 4 ---- .../Extensions/ModelBuilderExtension.cs | 5 +---- .../Extensions/QueryableExtensions.cs | 5 +---- .../OutOfSchool.DataAccess/GlobalUsings.cs | 15 +++++++++++++++ OutOfSchool/OutOfSchool.DataAccess/IUnitOfWork.cs | 2 -- .../OutOfSchool.DataAccess/Models/Achievement.cs | 7 +------ .../Models/AchievementTeacher.cs | 5 +---- .../Models/AchievementType.cs | 4 +--- .../OutOfSchool.DataAccess/Models/Address.cs | 5 +---- .../OutOfSchool.DataAccess/Models/Application.cs | 6 +----- .../Models/BlockedProviderParent.cs | 5 +---- .../OutOfSchool.DataAccess/Models/ChangesLog.cs | 5 +---- .../Models/ChatWorkshop/ChatMessageWorkshop.cs | 5 +---- .../Models/ChatWorkshop/ChatRoomWorkshop.cs | 6 +----- .../ChatMessageInfoForChatList.cs | 4 +--- .../ChatRoomWorkshopForChatList.cs | 4 +--- .../ModelsForChatLists/ParentInfoForChatList.cs | 4 +--- .../ModelsForChatLists/WorkshopInfoForChatList.cs | 4 +--- .../OutOfSchool.DataAccess/Models/Child.cs | 6 +----- .../Models/ChildSocialGroup.cs | 4 +--- OutOfSchool/OutOfSchool.DataAccess/Models/City.cs | 4 +--- .../OutOfSchool.DataAccess/Models/Class.cs | 4 +--- .../OutOfSchool.DataAccess/Models/Codeficator.cs | 5 +---- .../Models/CompanyInformation.cs | 7 +------ .../Models/CompanyInformationItem.cs | 5 +---- .../Configurations/AchievementConfiguration.cs | 5 +---- .../Configurations/ApplicationConfiguration.cs | 6 +----- .../ChatMessageWorkshopConfiguration.cs | 4 +--- .../ChatRoomWorkshopConfiguration.cs | 4 +--- .../Models/Configurations/ChildConfiguration.cs | 5 +---- .../Images/EntityImagesConfiguration.cs | 4 +--- .../Configurations/NotificationConfiguration.cs | 5 +---- .../Configurations/ProviderAdminConfiguration.cs | 5 +---- .../Configurations/ProviderConfiguration.cs | 8 +------- .../Models/Configurations/TeacherConfiguration.cs | 4 +--- .../Configurations/WorkshopConfiguration.cs | 5 +---- .../Models/DateTimeRange.cs | 5 ----- .../OutOfSchool.DataAccess/Models/Department.cs | 5 +---- .../OutOfSchool.DataAccess/Models/Direction.cs | 4 +--- .../Models/ElasticsearchSyncRecord.cs | 5 +---- .../OutOfSchool.DataAccess/Models/Favorite.cs | 5 +---- .../Models/Images/IImageDependentEntity.cs | 4 +--- .../OutOfSchool.DataAccess/Models/Images/Image.cs | 4 +--- .../Models/InstitutionStatus.cs | 5 +---- .../OutOfSchool.DataAccess/Models/Notification.cs | 7 +------ .../OutOfSchool.DataAccess/Models/Parent.cs | 5 +---- .../Models/PermissionsForRole.cs | 4 +--- .../OutOfSchool.DataAccess/Models/Provider.cs | 9 +-------- .../Models/ProviderAdmin.cs | 5 +---- .../Models/ProviderAdminChangesLog.cs | 6 +----- .../Models/ProviderSectionItem.cs | 5 +---- .../OutOfSchool.DataAccess/Models/Rating.cs | 7 +------ .../Models/SectionDayOfWeek.cs | 4 +--- .../OutOfSchool.DataAccess/Models/SocialGroup.cs | 5 +---- .../Models/SubordinationStructure/Institution.cs | 5 +---- .../InstitutionFieldDescription.cs | 5 +---- .../InstitutionHierarchy.cs | 6 +----- .../OutOfSchool.DataAccess/Models/Teacher.cs | 5 +---- OutOfSchool/OutOfSchool.DataAccess/Models/User.cs | 5 +---- .../OutOfSchool.DataAccess/Models/Workshop.cs | 8 +------- .../Models/WorkshopDescriptionItem.cs | 5 +---- .../OutOfSchoolDbContext.cs | 3 --- .../Repository/AchievementRepository.cs | 9 +-------- .../Repository/ApplicationRepository.cs | 8 +------- .../Repository/BlockedProviderParentRepository.cs | 8 +------- .../Repository/ChangesLogRepository.cs | 7 +------ .../ChatRoomWorkshopModelForChatListRepository.cs | 9 +-------- .../Repository/ChildRepository.cs | 5 +---- .../Repository/ClassRepository.cs | 5 +---- .../Repository/CodeficatorRepository.cs | 9 +-------- .../Repository/DepartmentRepository.cs | 5 +---- .../Repository/DirectionRepository.cs | 8 -------- .../ElasticsearchSyncRecordRepository.cs | 10 +--------- .../Repository/EntityRepositoryBase.cs | 9 +-------- .../Repository/ExternalImageStorage.cs | 4 +--- .../Repository/Files/GcpFilesStorageBase.cs | 5 ----- .../Files/GcpImagesSyncDataRepository.cs | 6 ------ .../Repository/Files/IFilesStorage.cs | 4 ---- .../Files/IGcpImagesSyncDataRepository.cs | 3 --- .../Repository/IAchievementRepository.cs | 7 +------ .../Repository/IApplicationRepository.cs | 6 +----- .../IBlockedProviderParentRepository.cs | 5 +---- .../Repository/IChangesLogRepository.cs | 6 +----- ...IChatRoomWorkshopModelForChatListRepository.cs | 5 +---- .../Repository/IClassRepository.cs | 4 +--- .../Repository/ICodeficatorRepository.cs | 7 +------ .../Repository/IDepartmentRepository.cs | 4 +--- .../Repository/IDirectionRepository.cs | 6 ------ .../IElasticsearchSyncRecordRepository.cs | 8 +------- .../Repository/IEntityRepository.cs | 10 +--------- .../Repository/IExternalImageStorage.cs | 1 - .../Repository/INotificationRepository.cs | 8 +------- .../Repository/IParentRepository.cs | 8 +------- .../Repository/IProviderAdminRepository.cs | 7 +------ .../Repository/IProviderRepository.cs | 4 +--- .../Repository/IRatingRepository.cs | 7 +------ .../Repository/IWorkshopRepository.cs | 7 +------ .../Repository/NotificationRepository.cs | 10 +--------- .../Repository/ParentRepository.cs | 9 +-------- .../Repository/ProviderAdminRepository.cs | 11 +---------- .../Repository/ProviderRepository.cs | 7 +------ .../Repository/RatingRepository.cs | 8 +------- .../Repository/SensitiveEntityRepository{T}.cs | 4 +--- .../Repository/WorkshopRepository.cs | 9 +-------- .../Controllers/AccountController.cs | 2 -- .../Controllers/AuthController.cs | 3 --- .../Controllers/ProviderAdminController.cs | 4 +--- .../OutOfSchool.IdentityServer/GlobalUsings.cs | 4 ++++ .../KeyManagement/KeyManager.cs | 1 - .../Services/Interfaces/IProviderAdminService.cs | 5 +---- .../Services/ProviderAdminService.cs | 3 --- .../Services/ProviderAdminServiceGRPC.cs | 1 - .../Util/MappingProfile.cs | 1 - .../Controllers/V1/AboutPortalController.cs | 3 +-- .../Controllers/V1/AchievementController.cs | 1 - .../Controllers/V1/AddressController.cs | 3 +-- .../Controllers/V1/AdminController.cs | 1 - .../Controllers/V1/ApplicationController.cs | 4 +--- .../V1/BlockedProviderParentController.cs | 4 +--- .../Controllers/V1/ChangesLogController.cs | 3 +-- .../Controllers/V1/ChatWorkshopController.cs | 2 -- .../Controllers/V1/ChildController.cs | 4 +--- .../Controllers/V1/CityController.cs | 3 +-- .../Controllers/V1/ClassController.cs | 1 - .../Controllers/V1/CodeficatorController.cs | 3 +-- .../V1/CompanyInformationController.cs | 3 +-- .../Controllers/V1/DepartmentController.cs | 1 - .../Controllers/V1/DirectionController.cs | 1 - .../V1/ElasticsearchSynchronizationController.cs | 4 +--- .../V1/ElasticsearchWorkshopController.cs | 4 +--- .../Controllers/V1/FavoriteController.cs | 3 +-- .../Controllers/V1/FeatureManagementController.cs | 5 +---- .../Controllers/V1/InstitutionStatusController.cs | 3 +-- .../V1/LawsAndRegulationsController.cs | 3 +-- .../Controllers/V1/NotificationController.cs | 4 +--- .../Controllers/V1/ParentController.cs | 3 +-- .../V1/PermissionsForRoleController.cs | 3 +-- .../Controllers/V1/ProviderAdminController.cs | 2 -- .../Controllers/V1/ProviderController.cs | 2 -- .../Controllers/V1/PublicImageController.cs | 4 +--- .../Controllers/V1/RatingController.cs | 3 +-- .../Controllers/V1/SocialGroupController.cs | 3 +-- .../Controllers/V1/StatisticController.cs | 3 +-- .../InstitutionController.cs | 3 +-- .../InstitutionFieldDescriptionController.cs | 3 +-- .../InstitutionHierarchyController.cs | 3 +-- .../V1/SupportInformationController.cs | 3 +-- .../Controllers/V1/TeacherController.cs | 1 - .../Controllers/V1/UserController.cs | 3 +-- .../Controllers/V1/WorkshopController.cs | 2 -- .../Controllers/V2/ProviderController.cs | 2 -- .../Controllers/V2/TeacherController.cs | 1 - .../Controllers/V2/WorkshopController.cs | 4 +--- .../Extensions/ControllerExtension.cs | 3 +-- .../ElasticsearchSynchronizationExtension.cs | 3 +-- .../Extensions/ExceptionMiddlewareExtension.cs | 1 - .../Extensions/OperationExtensions.cs | 3 +-- .../Extensions/Startup/ApiVersioningExtensions.cs | 1 - .../Extensions/Startup/CustomSwaggerOptions.cs | 1 - .../Extensions/Startup/FileStorageExtensions.cs | 1 - OutOfSchool/OutOfSchool.WebApi/GlobalUsings.cs | 3 +++ .../OutOfSchool.WebApi/Hubs/ChatWorkshopHub.cs | 1 - .../OutOfSchool.WebApi/Hubs/NotificationHub.cs | 1 - .../Models/CompanyInformationDto.cs | 1 - .../Models/Images/ImageChangingResult.cs | 4 +--- .../Images/MultipleImageRemovingResponse.cs | 4 +--- .../Models/Images/MultipleImageRemovingResult.cs | 4 +--- .../Images/MultipleImageUploadingResponse.cs | 4 +--- .../Models/Images/MultipleImageUploadingResult.cs | 4 +--- .../Models/Images/SingleImageRemovingResponse.cs | 4 +--- .../Models/Images/SingleImageUploadingResponse.cs | 4 +--- .../Models/Providers/ProviderDto.cs | 1 - .../Models/Teachers/TeacherCreationResultDto.cs | 4 +--- .../Models/Teachers/TeacherUpdateResultDto.cs | 4 +--- .../Models/Workshop/WorkshopCreationResultDto.cs | 4 +--- .../Models/Workshop/WorkshopDTO.cs | 1 - .../Models/Workshop/WorkshopUpdateResultDto.cs | 4 +--- .../Services/ApplicationService.cs | 1 - .../Services/BlockedProviderParentService.cs | 1 - .../Services/ChangesLogService.cs | 1 - .../OutOfSchool.WebApi/Services/ClassService.cs | 1 - .../Services/Database/WorkshopService.cs | 1 - .../Services/DepartmentService.cs | 1 - .../Services/DirectionService.cs | 1 - .../Services/Elasticsearch/ElasticPinger.cs | 3 +-- .../ElasticsearchSynchronizationService.cs | 1 - .../Services/GRPC/GRPCCommonService.cs | 1 - .../Services/IBlockedProviderParentService.cs | 3 +-- .../OutOfSchool.WebApi/Services/IClassService.cs | 3 +-- .../Services/IDepartmentService.cs | 3 +-- .../Services/IDirectionService.cs | 3 +-- .../OutOfSchool.WebApi/Services/IFileValidator.cs | 2 -- .../Images/IEntityCoverImageInteractionService.cs | 3 +-- .../IEntitySetOfImagesInteractionService.cs | 3 +-- .../Services/Images/IImageService.cs | 3 +-- ...mageDependentEntityImagesInteractionService.cs | 4 +--- .../Services/Images/ImageService.cs | 1 - .../Services/Images/ImageValidator.cs | 2 -- .../Services/NotificationService.cs | 1 - .../ProviderAdminOperationsRESTService.cs | 3 +-- .../Services/ProviderAdminService.cs | 2 -- .../IInstitutionHierarchyService.cs | 3 +-- .../InstitutionHierarchyService.cs | 1 - .../OutOfSchool.WebApi/Services/TeacherService.cs | 1 - .../ImageResultsHelper.cs | 3 +-- .../Util/OperationResultHelper.cs | 4 +--- 212 files changed, 174 insertions(+), 708 deletions(-) create mode 100644 OutOfSchool/OutOfSchool.DataAccess/GlobalUsings.cs diff --git a/OutOfSchool/OutOfSchool.DataAccess/Common/Exceptions/FileStorageException.cs b/OutOfSchool/OutOfSchool.DataAccess/Common/Exceptions/FileStorageException.cs index 800bc8196b..613817d9f2 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Common/Exceptions/FileStorageException.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Common/Exceptions/FileStorageException.cs @@ -1,7 +1,4 @@ -using System; -using System.Runtime.Serialization; - -namespace OutOfSchool.Services.Common.Exceptions; +namespace OutOfSchool.Services.Common.Exceptions; /// /// The ImageStorageException is thrown when something has happened while trying diff --git a/OutOfSchool/OutOfSchool.DataAccess/Contexts/GcpStorageContext.cs b/OutOfSchool/OutOfSchool.DataAccess/Contexts/GcpStorageContext.cs index 376630511e..3d6698f1b7 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Contexts/GcpStorageContext.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Contexts/GcpStorageContext.cs @@ -1,6 +1,3 @@ -using System; -using Google.Cloud.Storage.V1; - namespace OutOfSchool.Services.Contexts; public class GcpStorageContext : IGcpStorageContext diff --git a/OutOfSchool/OutOfSchool.DataAccess/Contexts/IGcpStorageContext.cs b/OutOfSchool/OutOfSchool.DataAccess/Contexts/IGcpStorageContext.cs index fbb952d905..8c37b7d7d9 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Contexts/IGcpStorageContext.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Contexts/IGcpStorageContext.cs @@ -1,5 +1,3 @@ -using Google.Cloud.Storage.V1; - namespace OutOfSchool.Services.Contexts; public interface IGcpStorageContext diff --git a/OutOfSchool/OutOfSchool.DataAccess/Contexts/MongoDb.cs b/OutOfSchool/OutOfSchool.DataAccess/Contexts/MongoDb.cs index 5b74eddcee..43a2446e6a 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Contexts/MongoDb.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Contexts/MongoDb.cs @@ -1,5 +1,4 @@ -using System; -using Microsoft.Extensions.Options; +using Microsoft.Extensions.Options; using MongoDB.Driver; using MongoDB.Driver.GridFS; using OutOfSchool.Services.Contexts.Configuration; diff --git a/OutOfSchool/OutOfSchool.DataAccess/Enums/DaysBitMask.cs b/OutOfSchool/OutOfSchool.DataAccess/Enums/DaysBitMask.cs index b1bb094a82..a32bfa7dec 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Enums/DaysBitMask.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Enums/DaysBitMask.cs @@ -1,4 +1,3 @@ -using System; using Newtonsoft.Json; using Newtonsoft.Json.Converters; diff --git a/OutOfSchool/OutOfSchool.DataAccess/Extensions/DbContextExtensions.cs b/OutOfSchool/OutOfSchool.DataAccess/Extensions/DbContextExtensions.cs index 99cdaa0990..14d09d10c2 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Extensions/DbContextExtensions.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Extensions/DbContextExtensions.cs @@ -1,7 +1,4 @@ -using Microsoft.EntityFrameworkCore; -using OutOfSchool.Services.Models; - -namespace OutOfSchool.Services.Extensions; +namespace OutOfSchool.Services.Extensions; public static class DbContextExtensions { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Extensions/DbSetExtensions.cs b/OutOfSchool/OutOfSchool.DataAccess/Extensions/DbSetExtensions.cs index e3c50fd995..8bb5fd38b5 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Extensions/DbSetExtensions.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Extensions/DbSetExtensions.cs @@ -1,7 +1,3 @@ -using System; -using System.Linq; -using System.Linq.Expressions; -using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.ChangeTracking; #nullable enable diff --git a/OutOfSchool/OutOfSchool.DataAccess/Extensions/ModelBuilderExtension.cs b/OutOfSchool/OutOfSchool.DataAccess/Extensions/ModelBuilderExtension.cs index f1f47afa8d..ededbbfa87 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Extensions/ModelBuilderExtension.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Extensions/ModelBuilderExtension.cs @@ -1,7 +1,4 @@ -using Microsoft.EntityFrameworkCore; -using OutOfSchool.Common.PermissionsModule; -using OutOfSchool.Services.Enums; -using OutOfSchool.Services.Models; +using OutOfSchool.Common.PermissionsModule; namespace OutOfSchool.Services.Extensions; diff --git a/OutOfSchool/OutOfSchool.DataAccess/Extensions/QueryableExtensions.cs b/OutOfSchool/OutOfSchool.DataAccess/Extensions/QueryableExtensions.cs index fc921aee53..0114c9a072 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Extensions/QueryableExtensions.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Extensions/QueryableExtensions.cs @@ -1,7 +1,4 @@ -using System; -using System.Linq; - -namespace OutOfSchool.Services.Extensions; +namespace OutOfSchool.Services.Extensions; public static class QueryableExtensions { diff --git a/OutOfSchool/OutOfSchool.DataAccess/GlobalUsings.cs b/OutOfSchool/OutOfSchool.DataAccess/GlobalUsings.cs new file mode 100644 index 0000000000..6ab227a202 --- /dev/null +++ b/OutOfSchool/OutOfSchool.DataAccess/GlobalUsings.cs @@ -0,0 +1,15 @@ +global using System; +global using System.Collections.Generic; +global using System.ComponentModel.DataAnnotations; +global using System.ComponentModel.DataAnnotations.Schema; +global using System.Linq; +global using System.Linq.Expressions; +global using System.Runtime.Serialization; +global using System.Threading.Tasks; +global using Google.Cloud.Storage.V1; +global using Microsoft.EntityFrameworkCore; +global using Microsoft.EntityFrameworkCore.Metadata.Builders; +global using OutOfSchool.Common; +global using OutOfSchool.Common.Enums; +global using OutOfSchool.Services.Enums; +global using OutOfSchool.Services.Models; diff --git a/OutOfSchool/OutOfSchool.DataAccess/IUnitOfWork.cs b/OutOfSchool/OutOfSchool.DataAccess/IUnitOfWork.cs index ee345b55a0..f9e157aba2 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/IUnitOfWork.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/IUnitOfWork.cs @@ -1,5 +1,3 @@ -using System.Threading.Tasks; - namespace OutOfSchool.Services; public interface IUnitOfWork diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/Achievement.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/Achievement.cs index 1f7476c16d..39299e6a75 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/Achievement.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/Achievement.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace OutOfSchool.Services.Models; +namespace OutOfSchool.Services.Models; public class Achievement : IKeyedEntity { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/AchievementTeacher.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/AchievementTeacher.cs index 6615727db5..eca392a13b 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/AchievementTeacher.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/AchievementTeacher.cs @@ -1,7 +1,4 @@ -using System; -using System.ComponentModel.DataAnnotations; - -namespace OutOfSchool.Services.Models; +namespace OutOfSchool.Services.Models; public class AchievementTeacher : IKeyedEntity { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/AchievementType.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/AchievementType.cs index 78e4354f92..725215543c 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/AchievementType.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/AchievementType.cs @@ -1,6 +1,4 @@ -using System.ComponentModel.DataAnnotations; - -namespace OutOfSchool.Services.Models; +namespace OutOfSchool.Services.Models; public class AchievementType : IKeyedEntity { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/Address.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/Address.cs index 40a977115c..d089a8dad5 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/Address.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/Address.cs @@ -1,8 +1,5 @@ -using System; -using System.ComponentModel.DataAnnotations; -using H3Lib; +using H3Lib; using H3Lib.Extensions; -using OutOfSchool.Common; namespace OutOfSchool.Services.Models; diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/Application.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/Application.cs index 31130acae8..2cb9598200 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/Application.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/Application.cs @@ -1,8 +1,4 @@ -using System; -using System.ComponentModel.DataAnnotations; -using OutOfSchool.Services.Enums; - -namespace OutOfSchool.Services.Models; +namespace OutOfSchool.Services.Models; public class Application : IKeyedEntity { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/BlockedProviderParent.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/BlockedProviderParent.cs index a3935983bf..779521d317 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/BlockedProviderParent.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/BlockedProviderParent.cs @@ -1,7 +1,4 @@ -using System; -using System.ComponentModel.DataAnnotations; - -namespace OutOfSchool.Services.Models; +namespace OutOfSchool.Services.Models; public class BlockedProviderParent : IKeyedEntity { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/ChangesLog.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/ChangesLog.cs index 14f52ba79e..fda8d183d0 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/ChangesLog.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/ChangesLog.cs @@ -1,7 +1,4 @@ -using System; -using System.ComponentModel.DataAnnotations; - -namespace OutOfSchool.Services.Models; +namespace OutOfSchool.Services.Models; public class ChangesLog : IKeyedEntity { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/ChatWorkshop/ChatMessageWorkshop.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/ChatWorkshop/ChatMessageWorkshop.cs index 4aef2aabd4..0c43620aab 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/ChatWorkshop/ChatMessageWorkshop.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/ChatWorkshop/ChatMessageWorkshop.cs @@ -1,7 +1,4 @@ -using System; -using System.ComponentModel.DataAnnotations; - -namespace OutOfSchool.Services.Models.ChatWorkshop; +namespace OutOfSchool.Services.Models.ChatWorkshop; public class ChatMessageWorkshop { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/ChatWorkshop/ChatRoomWorkshop.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/ChatWorkshop/ChatRoomWorkshop.cs index d3e18680ee..a864cc39cc 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/ChatWorkshop/ChatRoomWorkshop.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/ChatWorkshop/ChatRoomWorkshop.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; - -namespace OutOfSchool.Services.Models.ChatWorkshop; +namespace OutOfSchool.Services.Models.ChatWorkshop; public class ChatRoomWorkshop { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/ChatWorkshop/ModelsForChatLists/ChatMessageInfoForChatList.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/ChatWorkshop/ModelsForChatLists/ChatMessageInfoForChatList.cs index daa4001529..0a1b17f72f 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/ChatWorkshop/ModelsForChatLists/ChatMessageInfoForChatList.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/ChatWorkshop/ModelsForChatLists/ChatMessageInfoForChatList.cs @@ -1,6 +1,4 @@ -using System; - -namespace OutOfSchool.Services.Models.ChatWorkshop; +namespace OutOfSchool.Services.Models.ChatWorkshop; public class ChatMessageInfoForChatList { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/ChatWorkshop/ModelsForChatLists/ChatRoomWorkshopForChatList.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/ChatWorkshop/ModelsForChatLists/ChatRoomWorkshopForChatList.cs index 28ba7c17e4..bb174e197e 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/ChatWorkshop/ModelsForChatLists/ChatRoomWorkshopForChatList.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/ChatWorkshop/ModelsForChatLists/ChatRoomWorkshopForChatList.cs @@ -1,6 +1,4 @@ -using System; - -namespace OutOfSchool.Services.Models.ChatWorkshop; +namespace OutOfSchool.Services.Models.ChatWorkshop; public class ChatRoomWorkshopForChatList { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/ChatWorkshop/ModelsForChatLists/ParentInfoForChatList.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/ChatWorkshop/ModelsForChatLists/ParentInfoForChatList.cs index 57f6fefe84..7706aea259 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/ChatWorkshop/ModelsForChatLists/ParentInfoForChatList.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/ChatWorkshop/ModelsForChatLists/ParentInfoForChatList.cs @@ -1,6 +1,4 @@ -using System; - -namespace OutOfSchool.Services.Models.ChatWorkshop; +namespace OutOfSchool.Services.Models.ChatWorkshop; public class ParentInfoForChatList { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/ChatWorkshop/ModelsForChatLists/WorkshopInfoForChatList.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/ChatWorkshop/ModelsForChatLists/WorkshopInfoForChatList.cs index ed4215a95a..9dd0c5d27b 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/ChatWorkshop/ModelsForChatLists/WorkshopInfoForChatList.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/ChatWorkshop/ModelsForChatLists/WorkshopInfoForChatList.cs @@ -1,6 +1,4 @@ -using System; - -namespace OutOfSchool.Services.Models.ChatWorkshop; +namespace OutOfSchool.Services.Models.ChatWorkshop; public class WorkshopInfoForChatList { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/Child.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/Child.cs index ed20dbf81b..acf1f46099 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/Child.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/Child.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using OutOfSchool.Services.Enums; - -namespace OutOfSchool.Services.Models; +namespace OutOfSchool.Services.Models; public class Child : IKeyedEntity { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/ChildSocialGroup.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/ChildSocialGroup.cs index 0ffacebab3..a8833cf3c6 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/ChildSocialGroup.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/ChildSocialGroup.cs @@ -1,6 +1,4 @@ -using System; - -namespace OutOfSchool.Services.Models; +namespace OutOfSchool.Services.Models; public class ChildSocialGroup { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/City.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/City.cs index d0c5fbf5fd..ddb3ec4803 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/City.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/City.cs @@ -1,6 +1,4 @@ -using System.ComponentModel.DataAnnotations; - -namespace OutOfSchool.Services.Models; +namespace OutOfSchool.Services.Models; public class City : IKeyedEntity { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/Class.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/Class.cs index cfc28f0b8a..f75647de79 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/Class.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/Class.cs @@ -1,6 +1,4 @@ -using System.ComponentModel.DataAnnotations; - -namespace OutOfSchool.Services.Models; +namespace OutOfSchool.Services.Models; public class Class : IKeyedEntity { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/Codeficator.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/Codeficator.cs index ce37a33e4a..23a747cac4 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/Codeficator.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/Codeficator.cs @@ -1,7 +1,4 @@ -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; - -namespace OutOfSchool.Services.Models; +namespace OutOfSchool.Services.Models; public class Codeficator { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/CompanyInformation.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/CompanyInformation.cs index 9b221b8351..09fc2c8502 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/CompanyInformation.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/CompanyInformation.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; -using OutOfSchool.Services.Enums; - -namespace OutOfSchool.Services.Models; +namespace OutOfSchool.Services.Models; public class CompanyInformation : IKeyedEntity { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/CompanyInformationItem.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/CompanyInformationItem.cs index 715ae1b66f..532147f473 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/CompanyInformationItem.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/CompanyInformationItem.cs @@ -1,7 +1,4 @@ -using System; -using System.ComponentModel.DataAnnotations; - -namespace OutOfSchool.Services.Models; +namespace OutOfSchool.Services.Models; public class CompanyInformationItem : IKeyedEntity { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/Configurations/AchievementConfiguration.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/Configurations/AchievementConfiguration.cs index 41cdbfcc16..056ab74b93 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/Configurations/AchievementConfiguration.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/Configurations/AchievementConfiguration.cs @@ -1,7 +1,4 @@ -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Metadata.Builders; - -namespace OutOfSchool.Services.Models.Configurations; +namespace OutOfSchool.Services.Models.Configurations; internal class AchievementConfiguration : IEntityTypeConfiguration { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/Configurations/ApplicationConfiguration.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/Configurations/ApplicationConfiguration.cs index 755f53ab06..746dd4c824 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/Configurations/ApplicationConfiguration.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/Configurations/ApplicationConfiguration.cs @@ -1,8 +1,4 @@ -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Metadata.Builders; -using OutOfSchool.Services.Enums; - -namespace OutOfSchool.Services.Models.Configurations; +namespace OutOfSchool.Services.Models.Configurations; internal class ApplicationConfiguration : IEntityTypeConfiguration { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/Configurations/ChatMessageWorkshopConfiguration.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/Configurations/ChatMessageWorkshopConfiguration.cs index c3e6096ef6..0962586019 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/Configurations/ChatMessageWorkshopConfiguration.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/Configurations/ChatMessageWorkshopConfiguration.cs @@ -1,6 +1,4 @@ -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Metadata.Builders; - + using OutOfSchool.Services.Models.ChatWorkshop; namespace OutOfSchool.Services.Models.Configurations; diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/Configurations/ChatRoomWorkshopConfiguration.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/Configurations/ChatRoomWorkshopConfiguration.cs index befbdda1a6..c6319ff16c 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/Configurations/ChatRoomWorkshopConfiguration.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/Configurations/ChatRoomWorkshopConfiguration.cs @@ -1,6 +1,4 @@ -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Metadata.Builders; - + using OutOfSchool.Services.Models.ChatWorkshop; namespace OutOfSchool.Services.Models.Configurations; diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/Configurations/ChildConfiguration.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/Configurations/ChildConfiguration.cs index d38f9f860b..19fef5bfba 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/Configurations/ChildConfiguration.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/Configurations/ChildConfiguration.cs @@ -1,8 +1,5 @@ -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Metadata.Builders; - + using OutOfSchool.Services.Common; -using OutOfSchool.Services.Enums; namespace OutOfSchool.Services.Models.Configurations; diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/Configurations/Images/EntityImagesConfiguration.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/Configurations/Images/EntityImagesConfiguration.cs index ba0b9056ae..775d8ba8e9 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/Configurations/Images/EntityImagesConfiguration.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/Configurations/Images/EntityImagesConfiguration.cs @@ -1,6 +1,4 @@ -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Metadata.Builders; -using OutOfSchool.Services.Models.Images; +using OutOfSchool.Services.Models.Images; namespace OutOfSchool.Services.Models.Configurations.Images; diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/Configurations/NotificationConfiguration.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/Configurations/NotificationConfiguration.cs index ae5226ae64..8c7ae95c1b 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/Configurations/NotificationConfiguration.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/Configurations/NotificationConfiguration.cs @@ -1,7 +1,4 @@ -using System.Collections.Generic; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Metadata.Builders; -using Newtonsoft.Json; +using Newtonsoft.Json; namespace OutOfSchool.Services.Models.Configurations; diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/Configurations/ProviderAdminConfiguration.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/Configurations/ProviderAdminConfiguration.cs index 8f8e14dc3a..a6c20d04c8 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/Configurations/ProviderAdminConfiguration.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/Configurations/ProviderAdminConfiguration.cs @@ -1,7 +1,4 @@ -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Metadata.Builders; - -namespace OutOfSchool.Services.Models.Configurations; +namespace OutOfSchool.Services.Models.Configurations; internal class ProviderAdminConfiguration : IEntityTypeConfiguration { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/Configurations/ProviderConfiguration.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/Configurations/ProviderConfiguration.cs index 4a26aca6dc..e538a426d7 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/Configurations/ProviderConfiguration.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/Configurations/ProviderConfiguration.cs @@ -1,10 +1,4 @@ -using System.ComponentModel.DataAnnotations; - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Metadata.Builders; -using OutOfSchool.Services.Enums; - -namespace OutOfSchool.Services.Models.Configurations; +namespace OutOfSchool.Services.Models.Configurations; internal class ProviderConfiguration : IEntityTypeConfiguration { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/Configurations/TeacherConfiguration.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/Configurations/TeacherConfiguration.cs index 50c3a967ae..26fb540f2a 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/Configurations/TeacherConfiguration.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/Configurations/TeacherConfiguration.cs @@ -1,6 +1,4 @@ -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Metadata.Builders; - + using OutOfSchool.Services.Common; namespace OutOfSchool.Services.Models.Configurations; diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/Configurations/WorkshopConfiguration.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/Configurations/WorkshopConfiguration.cs index 5e70de2733..9b392cef48 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/Configurations/WorkshopConfiguration.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/Configurations/WorkshopConfiguration.cs @@ -1,7 +1,4 @@ -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Metadata.Builders; - -namespace OutOfSchool.Services.Models.Configurations; +namespace OutOfSchool.Services.Models.Configurations; internal class WorkshopConfiguration : IEntityTypeConfiguration { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/DateTimeRange.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/DateTimeRange.cs index a113a2b944..b3780d6e32 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/DateTimeRange.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/DateTimeRange.cs @@ -1,8 +1,3 @@ -using System; -using System.ComponentModel.DataAnnotations; - -using OutOfSchool.Services.Enums; - namespace OutOfSchool.Services.Models; public class DateTimeRange : IKeyedEntity diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/Department.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/Department.cs index 2aada65baa..32832533eb 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/Department.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/Department.cs @@ -1,7 +1,4 @@ -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; - -namespace OutOfSchool.Services.Models; +namespace OutOfSchool.Services.Models; public class Department : IKeyedEntity { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/Direction.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/Direction.cs index 30e6b7f9a1..2c47ed8616 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/Direction.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/Direction.cs @@ -1,6 +1,4 @@ -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; -using OutOfSchool.Services.Models.SubordinationStructure; +using OutOfSchool.Services.Models.SubordinationStructure; namespace OutOfSchool.Services.Models; diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/ElasticsearchSyncRecord.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/ElasticsearchSyncRecord.cs index b60cba95df..8b5e61f008 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/ElasticsearchSyncRecord.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/ElasticsearchSyncRecord.cs @@ -1,7 +1,4 @@ -using System; -using OutOfSchool.Services.Enums; - -namespace OutOfSchool.Services.Models; +namespace OutOfSchool.Services.Models; public class ElasticsearchSyncRecord : IKeyedEntity { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/Favorite.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/Favorite.cs index 55644941e9..4baef6cac4 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/Favorite.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/Favorite.cs @@ -1,7 +1,4 @@ -using System; -using System.ComponentModel.DataAnnotations; - -namespace OutOfSchool.Services.Models; +namespace OutOfSchool.Services.Models; public class Favorite : IKeyedEntity { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/Images/IImageDependentEntity.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/Images/IImageDependentEntity.cs index 6b9be1fa3b..00f562d30c 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/Images/IImageDependentEntity.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/Images/IImageDependentEntity.cs @@ -1,6 +1,4 @@ -using System.Collections.Generic; - -namespace OutOfSchool.Services.Models.Images; +namespace OutOfSchool.Services.Models.Images; public interface IImageDependentEntity { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/Images/Image.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/Images/Image.cs index 625cadaf35..c33e1cc21a 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/Images/Image.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/Images/Image.cs @@ -1,6 +1,4 @@ -using System; - -namespace OutOfSchool.Services.Models.Images; +namespace OutOfSchool.Services.Models.Images; /// /// Encapsulates image data for some Entity. diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/InstitutionStatus.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/InstitutionStatus.cs index 374c5c538a..ce10215d28 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/InstitutionStatus.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/InstitutionStatus.cs @@ -1,7 +1,4 @@ -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; - -namespace OutOfSchool.Services.Models; +namespace OutOfSchool.Services.Models; public class InstitutionStatus : IKeyedEntity { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/Notification.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/Notification.cs index 3bd788450e..9532fa21ec 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/Notification.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/Notification.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; -using OutOfSchool.Services.Enums; - -namespace OutOfSchool.Services.Models; +namespace OutOfSchool.Services.Models; public class Notification : IKeyedEntity { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/Parent.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/Parent.cs index 4d53d397f7..6f76f462e5 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/Parent.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/Parent.cs @@ -1,7 +1,4 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; - + using OutOfSchool.Services.Models.ChatWorkshop; namespace OutOfSchool.Services.Models; diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/PermissionsForRole.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/PermissionsForRole.cs index 519aca5cbb..7454afd536 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/PermissionsForRole.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/PermissionsForRole.cs @@ -1,6 +1,4 @@ -using System.ComponentModel.DataAnnotations; - -namespace OutOfSchool.Services.Models; +namespace OutOfSchool.Services.Models; public class PermissionsForRole : IKeyedEntity { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/Provider.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/Provider.cs index 4bcfb97638..718050d870 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/Provider.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/Provider.cs @@ -1,11 +1,4 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using OutOfSchool.Common; -using OutOfSchool.Common.Enums; -using OutOfSchool.Services.Enums; -using OutOfSchool.Services.Models.Images; +using OutOfSchool.Services.Models.Images; using OutOfSchool.Services.Models.SubordinationStructure; namespace OutOfSchool.Services.Models; diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/ProviderAdmin.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/ProviderAdmin.cs index f0ba392dc1..e4c9450c8a 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/ProviderAdmin.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/ProviderAdmin.cs @@ -1,7 +1,4 @@ -using System; -using System.Collections.Generic; - -namespace OutOfSchool.Services.Models; +namespace OutOfSchool.Services.Models; public class ProviderAdmin { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/ProviderAdminChangesLog.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/ProviderAdminChangesLog.cs index cec59ace09..22e7244146 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/ProviderAdminChangesLog.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/ProviderAdminChangesLog.cs @@ -1,8 +1,4 @@ -using System; -using System.ComponentModel.DataAnnotations; -using OutOfSchool.Services.Enums; - -namespace OutOfSchool.Services.Models; +namespace OutOfSchool.Services.Models; public class ProviderAdminChangesLog : IKeyedEntity { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/ProviderSectionItem.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/ProviderSectionItem.cs index 704e612260..550995ee27 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/ProviderSectionItem.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/ProviderSectionItem.cs @@ -1,7 +1,4 @@ -using System; -using System.ComponentModel.DataAnnotations; - -namespace OutOfSchool.Services.Models; +namespace OutOfSchool.Services.Models; public class ProviderSectionItem : IKeyedEntity { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/Rating.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/Rating.cs index 31edb6677d..58bae53bf6 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/Rating.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/Rating.cs @@ -1,9 +1,4 @@ -using System; -using System.ComponentModel.DataAnnotations; - -using OutOfSchool.Services.Enums; - -namespace OutOfSchool.Services.Models; +namespace OutOfSchool.Services.Models; public class Rating : IKeyedEntity { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/SectionDayOfWeek.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/SectionDayOfWeek.cs index df58a3ba40..f3cd81fc21 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/SectionDayOfWeek.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/SectionDayOfWeek.cs @@ -1,6 +1,4 @@ -using System; - -namespace OutOfSchool.Services.Models; +namespace OutOfSchool.Services.Models; public class SectionDayOfWeek : IKeyedEntity { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/SocialGroup.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/SocialGroup.cs index afce04fa1d..a261849de2 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/SocialGroup.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/SocialGroup.cs @@ -1,7 +1,4 @@ -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; - -namespace OutOfSchool.Services.Models; +namespace OutOfSchool.Services.Models; public class SocialGroup : IKeyedEntity { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/SubordinationStructure/Institution.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/SubordinationStructure/Institution.cs index 136d984ad7..a9dc1b12c5 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/SubordinationStructure/Institution.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/SubordinationStructure/Institution.cs @@ -1,7 +1,4 @@ -using System; -using System.ComponentModel.DataAnnotations; - -namespace OutOfSchool.Services.Models.SubordinationStructure; +namespace OutOfSchool.Services.Models.SubordinationStructure; public class Institution : IKeyedEntity { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/SubordinationStructure/InstitutionFieldDescription.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/SubordinationStructure/InstitutionFieldDescription.cs index 9b29a748a8..c22bbd8bf2 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/SubordinationStructure/InstitutionFieldDescription.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/SubordinationStructure/InstitutionFieldDescription.cs @@ -1,7 +1,4 @@ -using System; -using System.ComponentModel.DataAnnotations; - -namespace OutOfSchool.Services.Models.SubordinationStructure; +namespace OutOfSchool.Services.Models.SubordinationStructure; public class InstitutionFieldDescription : IKeyedEntity { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/SubordinationStructure/InstitutionHierarchy.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/SubordinationStructure/InstitutionHierarchy.cs index 51c3cc4764..dd938d2305 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/SubordinationStructure/InstitutionHierarchy.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/SubordinationStructure/InstitutionHierarchy.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; - -namespace OutOfSchool.Services.Models.SubordinationStructure; +namespace OutOfSchool.Services.Models.SubordinationStructure; public class InstitutionHierarchy : IKeyedEntity { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/Teacher.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/Teacher.cs index acb1ad3b5e..dc0272b554 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/Teacher.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/Teacher.cs @@ -1,7 +1,4 @@ -using System; -using System.Collections.Generic; -using OutOfSchool.Services.Enums; -using OutOfSchool.Services.Models.Images; +using OutOfSchool.Services.Models.Images; namespace OutOfSchool.Services.Models; diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/User.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/User.cs index 1f968d29b2..4e70d6f29a 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/User.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/User.cs @@ -1,8 +1,5 @@ -using System; -using System.ComponentModel.DataAnnotations; - + using Microsoft.AspNetCore.Identity; -using OutOfSchool.Services.Enums; namespace OutOfSchool.Services.Models; diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/Workshop.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/Workshop.cs index 092f167afd..8da20f1fe9 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/Workshop.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/Workshop.cs @@ -1,11 +1,5 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; -using Microsoft.EntityFrameworkCore.Metadata.Internal; +using Microsoft.EntityFrameworkCore.Metadata.Internal; using Newtonsoft.Json; -using OutOfSchool.Common; -using OutOfSchool.Common.Enums; using OutOfSchool.Services.Models.ChatWorkshop; using OutOfSchool.Services.Models.Images; using OutOfSchool.Services.Models.SubordinationStructure; diff --git a/OutOfSchool/OutOfSchool.DataAccess/Models/WorkshopDescriptionItem.cs b/OutOfSchool/OutOfSchool.DataAccess/Models/WorkshopDescriptionItem.cs index 9b15a48734..25ac2f1f44 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Models/WorkshopDescriptionItem.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Models/WorkshopDescriptionItem.cs @@ -1,7 +1,4 @@ -using System; -using System.ComponentModel.DataAnnotations; - -namespace OutOfSchool.Services.Models; +namespace OutOfSchool.Services.Models; public class WorkshopDescriptionItem : IKeyedEntity { diff --git a/OutOfSchool/OutOfSchool.DataAccess/OutOfSchoolDbContext.cs b/OutOfSchool/OutOfSchool.DataAccess/OutOfSchoolDbContext.cs index 7fd35e5089..c33d4f80e9 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/OutOfSchoolDbContext.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/OutOfSchoolDbContext.cs @@ -1,10 +1,7 @@ -using System.Threading.Tasks; using Microsoft.AspNetCore.DataProtection.EntityFrameworkCore; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore; using OutOfSchool.Services.Extensions; -using OutOfSchool.Services.Models; using OutOfSchool.Services.Models.ChatWorkshop; using OutOfSchool.Services.Models.Configurations; using OutOfSchool.Services.Models.Configurations.Images; diff --git a/OutOfSchool/OutOfSchool.DataAccess/Repository/AchievementRepository.cs b/OutOfSchool/OutOfSchool.DataAccess/Repository/AchievementRepository.cs index 471dd74714..a38e78a6af 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Repository/AchievementRepository.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Repository/AchievementRepository.cs @@ -1,11 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using Microsoft.EntityFrameworkCore; -using OutOfSchool.Services.Models; - -namespace OutOfSchool.Services.Repository; +namespace OutOfSchool.Services.Repository; /// /// Repository for accessing the Achievement table in database. diff --git a/OutOfSchool/OutOfSchool.DataAccess/Repository/ApplicationRepository.cs b/OutOfSchool/OutOfSchool.DataAccess/Repository/ApplicationRepository.cs index 10a4273297..67a5d460d3 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Repository/ApplicationRepository.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Repository/ApplicationRepository.cs @@ -1,10 +1,4 @@ -using System; -using System.Linq; -using System.Threading.Tasks; -using Microsoft.EntityFrameworkCore; -using OutOfSchool.Services.Models; - -namespace OutOfSchool.Services.Repository; +namespace OutOfSchool.Services.Repository; /// /// Repository for accessing the Application table in database. diff --git a/OutOfSchool/OutOfSchool.DataAccess/Repository/BlockedProviderParentRepository.cs b/OutOfSchool/OutOfSchool.DataAccess/Repository/BlockedProviderParentRepository.cs index e5f2c1e06f..87d4b5e231 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Repository/BlockedProviderParentRepository.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Repository/BlockedProviderParentRepository.cs @@ -1,10 +1,4 @@ -using System; -using System.Linq; -using System.Threading.Tasks; -using Microsoft.EntityFrameworkCore; -using OutOfSchool.Services.Models; - -namespace OutOfSchool.Services.Repository; +namespace OutOfSchool.Services.Repository; public class BlockedProviderParentRepository : SensitiveEntityRepository, IBlockedProviderParentRepository { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Repository/ChangesLogRepository.cs b/OutOfSchool/OutOfSchool.DataAccess/Repository/ChangesLogRepository.cs index d83104a767..c561876b45 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Repository/ChangesLogRepository.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Repository/ChangesLogRepository.cs @@ -1,11 +1,6 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.ChangeTracking; +using Microsoft.EntityFrameworkCore.ChangeTracking; using OutOfSchool.Common.Extensions; using OutOfSchool.Services.Extensions; -using OutOfSchool.Services.Models; namespace OutOfSchool.Services.Repository; diff --git a/OutOfSchool/OutOfSchool.DataAccess/Repository/ChatRoomWorkshopModelForChatListRepository.cs b/OutOfSchool/OutOfSchool.DataAccess/Repository/ChatRoomWorkshopModelForChatListRepository.cs index eb4ab93df3..7e2f328e93 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Repository/ChatRoomWorkshopModelForChatListRepository.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Repository/ChatRoomWorkshopModelForChatListRepository.cs @@ -1,11 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Linq.Expressions; -using System.Threading.Tasks; - -using Microsoft.EntityFrameworkCore; - + using OutOfSchool.Services.Models.ChatWorkshop; namespace OutOfSchool.Services.Repository; diff --git a/OutOfSchool/OutOfSchool.DataAccess/Repository/ChildRepository.cs b/OutOfSchool/OutOfSchool.DataAccess/Repository/ChildRepository.cs index d0fb936427..6e6de7e83d 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Repository/ChildRepository.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Repository/ChildRepository.cs @@ -1,7 +1,4 @@ -using System.Threading.Tasks; -using OutOfSchool.Services.Models; - -namespace OutOfSchool.Services.Repository; +namespace OutOfSchool.Services.Repository; public class ChildRepository : EntityRepository, IEntityRepository { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Repository/ClassRepository.cs b/OutOfSchool/OutOfSchool.DataAccess/Repository/ClassRepository.cs index f0d665dd44..754619d170 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Repository/ClassRepository.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Repository/ClassRepository.cs @@ -1,7 +1,4 @@ -using System.Linq; -using OutOfSchool.Services.Models; - -namespace OutOfSchool.Services.Repository; +namespace OutOfSchool.Services.Repository; public class ClassRepository : EntityRepository, IClassRepository { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Repository/CodeficatorRepository.cs b/OutOfSchool/OutOfSchool.DataAccess/Repository/CodeficatorRepository.cs index 8970a0aaa1..af71fd5f6d 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Repository/CodeficatorRepository.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Repository/CodeficatorRepository.cs @@ -1,11 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Linq.Expressions; -using System.Threading.Tasks; -using Microsoft.EntityFrameworkCore; -using OutOfSchool.Common.Models; -using OutOfSchool.Services.Models; +using OutOfSchool.Common.Models; namespace OutOfSchool.Services.Repository; diff --git a/OutOfSchool/OutOfSchool.DataAccess/Repository/DepartmentRepository.cs b/OutOfSchool/OutOfSchool.DataAccess/Repository/DepartmentRepository.cs index 3412c03ebd..f47646731c 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Repository/DepartmentRepository.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Repository/DepartmentRepository.cs @@ -1,7 +1,4 @@ -using System.Linq; -using OutOfSchool.Services.Models; - -namespace OutOfSchool.Services.Repository; +namespace OutOfSchool.Services.Repository; public class DepartmentRepository : EntityRepository, IDepartmentRepository { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Repository/DirectionRepository.cs b/OutOfSchool/OutOfSchool.DataAccess/Repository/DirectionRepository.cs index 7f6dc74ee5..e72d85966d 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Repository/DirectionRepository.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Repository/DirectionRepository.cs @@ -1,11 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Linq.Expressions; -using System.Threading.Tasks; -using Microsoft.EntityFrameworkCore; -using OutOfSchool.Services.Models; - namespace OutOfSchool.Services.Repository; public class DirectionRepository : EntityRepository, IDirectionRepository diff --git a/OutOfSchool/OutOfSchool.DataAccess/Repository/ElasticsearchSyncRecordRepository.cs b/OutOfSchool/OutOfSchool.DataAccess/Repository/ElasticsearchSyncRecordRepository.cs index 355e70cc94..bc4333c2da 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Repository/ElasticsearchSyncRecordRepository.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Repository/ElasticsearchSyncRecordRepository.cs @@ -1,12 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using Microsoft.EntityFrameworkCore; -using OutOfSchool.Services.Enums; -using OutOfSchool.Services.Models; - -namespace OutOfSchool.Services.Repository; +namespace OutOfSchool.Services.Repository; public class ElasticsearchSyncRecordRepository : SensitiveEntityRepository, IElasticsearchSyncRecordRepository { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Repository/EntityRepositoryBase.cs b/OutOfSchool/OutOfSchool.DataAccess/Repository/EntityRepositoryBase.cs index 53314e5a9b..256c40bfb5 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Repository/EntityRepositoryBase.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Repository/EntityRepositoryBase.cs @@ -1,11 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Linq.Expressions; -using System.Threading.Tasks; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Storage; -using OutOfSchool.Services.Enums; +using Microsoft.EntityFrameworkCore.Storage; using OutOfSchool.Services.Extensions; namespace OutOfSchool.Services.Repository; diff --git a/OutOfSchool/OutOfSchool.DataAccess/Repository/ExternalImageStorage.cs b/OutOfSchool/OutOfSchool.DataAccess/Repository/ExternalImageStorage.cs index b74441848a..90f2b1166c 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Repository/ExternalImageStorage.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Repository/ExternalImageStorage.cs @@ -1,6 +1,4 @@ -using System; -using System.Threading; -using System.Threading.Tasks; +using System.Threading; using MongoDB.Bson; using MongoDB.Driver.GridFS; using OutOfSchool.Services.Common.Exceptions; diff --git a/OutOfSchool/OutOfSchool.DataAccess/Repository/Files/GcpFilesStorageBase.cs b/OutOfSchool/OutOfSchool.DataAccess/Repository/Files/GcpFilesStorageBase.cs index 8001012c64..3abaf7dcbc 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Repository/Files/GcpFilesStorageBase.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Repository/Files/GcpFilesStorageBase.cs @@ -1,13 +1,8 @@ -using System; -using System.Collections.Generic; using System.IO; using System.Threading; -using System.Threading.Tasks; using Google.Apis.Storage.v1.Data; -using Google.Cloud.Storage.V1; using OutOfSchool.Services.Common.Exceptions; using OutOfSchool.Services.Contexts; -using OutOfSchool.Services.Models; namespace OutOfSchool.Services.Repository.Files; diff --git a/OutOfSchool/OutOfSchool.DataAccess/Repository/Files/GcpImagesSyncDataRepository.cs b/OutOfSchool/OutOfSchool.DataAccess/Repository/Files/GcpImagesSyncDataRepository.cs index 214ff94424..d1ee0777f1 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Repository/Files/GcpImagesSyncDataRepository.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Repository/Files/GcpImagesSyncDataRepository.cs @@ -1,9 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using Microsoft.EntityFrameworkCore; -using OutOfSchool.Services.Models; using OutOfSchool.Services.Models.Images; namespace OutOfSchool.Services.Repository.Files; diff --git a/OutOfSchool/OutOfSchool.DataAccess/Repository/Files/IFilesStorage.cs b/OutOfSchool/OutOfSchool.DataAccess/Repository/Files/IFilesStorage.cs index ce0dbd0bcb..17b88d5c54 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Repository/Files/IFilesStorage.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Repository/Files/IFilesStorage.cs @@ -1,9 +1,5 @@ -using System.Collections.Generic; using System.Threading; -using System.Threading.Tasks; using Google.Apis.Storage.v1.Data; -using Google.Cloud.Storage.V1; -using OutOfSchool.Services.Models; namespace OutOfSchool.Services.Repository.Files; diff --git a/OutOfSchool/OutOfSchool.DataAccess/Repository/Files/IGcpImagesSyncDataRepository.cs b/OutOfSchool/OutOfSchool.DataAccess/Repository/Files/IGcpImagesSyncDataRepository.cs index b8f44be18b..6192839fc0 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Repository/Files/IGcpImagesSyncDataRepository.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Repository/Files/IGcpImagesSyncDataRepository.cs @@ -1,6 +1,3 @@ -using System.Collections.Generic; -using System.Threading.Tasks; - namespace OutOfSchool.Services.Repository.Files; public interface IGcpImagesSyncDataRepository diff --git a/OutOfSchool/OutOfSchool.DataAccess/Repository/IAchievementRepository.cs b/OutOfSchool/OutOfSchool.DataAccess/Repository/IAchievementRepository.cs index 62f661cf39..e683e79cf5 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Repository/IAchievementRepository.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Repository/IAchievementRepository.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Threading.Tasks; -using OutOfSchool.Services.Models; - -namespace OutOfSchool.Services.Repository; +namespace OutOfSchool.Services.Repository; public interface IAchievementRepository : IEntityRepositoryBase { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Repository/IApplicationRepository.cs b/OutOfSchool/OutOfSchool.DataAccess/Repository/IApplicationRepository.cs index 561dfebf8c..26cae589e5 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Repository/IApplicationRepository.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Repository/IApplicationRepository.cs @@ -1,8 +1,4 @@ -using System; -using System.Threading.Tasks; -using OutOfSchool.Services.Models; - -namespace OutOfSchool.Services.Repository; +namespace OutOfSchool.Services.Repository; public interface IApplicationRepository : IEntityRepositoryBase { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Repository/IBlockedProviderParentRepository.cs b/OutOfSchool/OutOfSchool.DataAccess/Repository/IBlockedProviderParentRepository.cs index b611ce5aca..fda14741f4 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Repository/IBlockedProviderParentRepository.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Repository/IBlockedProviderParentRepository.cs @@ -1,7 +1,4 @@ -using System.Threading.Tasks; -using OutOfSchool.Services.Models; - -namespace OutOfSchool.Services.Repository; +namespace OutOfSchool.Services.Repository; public interface IBlockedProviderParentRepository : ISensitiveEntityRepository { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Repository/IChangesLogRepository.cs b/OutOfSchool/OutOfSchool.DataAccess/Repository/IChangesLogRepository.cs index 52bdf8c7d4..82b0ad4d4d 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Repository/IChangesLogRepository.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Repository/IChangesLogRepository.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using OutOfSchool.Services.Models; - -namespace OutOfSchool.Services.Repository; +namespace OutOfSchool.Services.Repository; public interface IChangesLogRepository : IEntityRepository { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Repository/IChatRoomWorkshopModelForChatListRepository.cs b/OutOfSchool/OutOfSchool.DataAccess/Repository/IChatRoomWorkshopModelForChatListRepository.cs index 98b1de1aad..3b1e047652 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Repository/IChatRoomWorkshopModelForChatListRepository.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Repository/IChatRoomWorkshopModelForChatListRepository.cs @@ -1,7 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Threading.Tasks; - + using OutOfSchool.Services.Models.ChatWorkshop; namespace OutOfSchool.Services.Repository; diff --git a/OutOfSchool/OutOfSchool.DataAccess/Repository/IClassRepository.cs b/OutOfSchool/OutOfSchool.DataAccess/Repository/IClassRepository.cs index 55b03a04ae..e77f1cffb9 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Repository/IClassRepository.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Repository/IClassRepository.cs @@ -1,6 +1,4 @@ -using OutOfSchool.Services.Models; - -namespace OutOfSchool.Services.Repository; +namespace OutOfSchool.Services.Repository; public interface IClassRepository : IEntityRepository, IExistable { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Repository/ICodeficatorRepository.cs b/OutOfSchool/OutOfSchool.DataAccess/Repository/ICodeficatorRepository.cs index 82923a08ba..0156408743 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Repository/ICodeficatorRepository.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Repository/ICodeficatorRepository.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Threading.Tasks; -using OutOfSchool.Common.Models; -using OutOfSchool.Services.Models; +using OutOfSchool.Common.Models; namespace OutOfSchool.Services.Repository; diff --git a/OutOfSchool/OutOfSchool.DataAccess/Repository/IDepartmentRepository.cs b/OutOfSchool/OutOfSchool.DataAccess/Repository/IDepartmentRepository.cs index 541ac57f13..13471b9351 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Repository/IDepartmentRepository.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Repository/IDepartmentRepository.cs @@ -1,6 +1,4 @@ -using OutOfSchool.Services.Models; - -namespace OutOfSchool.Services.Repository; +namespace OutOfSchool.Services.Repository; public interface IDepartmentRepository : IEntityRepository, IExistable { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Repository/IDirectionRepository.cs b/OutOfSchool/OutOfSchool.DataAccess/Repository/IDirectionRepository.cs index b662b638b0..cdd47aa651 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Repository/IDirectionRepository.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Repository/IDirectionRepository.cs @@ -1,9 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Threading.Tasks; -using OutOfSchool.Services.Models; - namespace OutOfSchool.Services.Repository; public interface IDirectionRepository : IEntityRepository diff --git a/OutOfSchool/OutOfSchool.DataAccess/Repository/IElasticsearchSyncRecordRepository.cs b/OutOfSchool/OutOfSchool.DataAccess/Repository/IElasticsearchSyncRecordRepository.cs index faf8864026..b331c3d0ae 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Repository/IElasticsearchSyncRecordRepository.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Repository/IElasticsearchSyncRecordRepository.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Threading.Tasks; -using OutOfSchool.Services.Enums; -using OutOfSchool.Services.Models; - -namespace OutOfSchool.Services.Repository; +namespace OutOfSchool.Services.Repository; public interface IElasticsearchSyncRecordRepository : IEntityRepositoryBase { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Repository/IEntityRepository.cs b/OutOfSchool/OutOfSchool.DataAccess/Repository/IEntityRepository.cs index 60c0cb1875..5f19bda58b 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Repository/IEntityRepository.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Repository/IEntityRepository.cs @@ -1,12 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Linq.Expressions; -using System.Threading.Tasks; -using Microsoft.EntityFrameworkCore; -using OutOfSchool.Services.Enums; - -namespace OutOfSchool.Services.Repository; +namespace OutOfSchool.Services.Repository; public interface IEntityRepositoryBase where TEntity : class, new() diff --git a/OutOfSchool/OutOfSchool.DataAccess/Repository/IExternalImageStorage.cs b/OutOfSchool/OutOfSchool.DataAccess/Repository/IExternalImageStorage.cs index ed61497fdd..42df46fa84 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Repository/IExternalImageStorage.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Repository/IExternalImageStorage.cs @@ -1,5 +1,4 @@ using System.Threading; -using System.Threading.Tasks; using OutOfSchool.Services.Models.Images; namespace OutOfSchool.Services.Repository; diff --git a/OutOfSchool/OutOfSchool.DataAccess/Repository/INotificationRepository.cs b/OutOfSchool/OutOfSchool.DataAccess/Repository/INotificationRepository.cs index aa00be0443..f6b41f2297 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Repository/INotificationRepository.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Repository/INotificationRepository.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Threading.Tasks; -using OutOfSchool.Services.Enums; -using OutOfSchool.Services.Models; - -namespace OutOfSchool.Services.Repository; +namespace OutOfSchool.Services.Repository; public interface INotificationRepository : ISensitiveEntityRepository { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Repository/IParentRepository.cs b/OutOfSchool/OutOfSchool.DataAccess/Repository/IParentRepository.cs index 6183a38f80..4a10de2fe4 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Repository/IParentRepository.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Repository/IParentRepository.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Threading.Tasks; - -using OutOfSchool.Services.Models; - -namespace OutOfSchool.Services.Repository; +namespace OutOfSchool.Services.Repository; public interface IParentRepository : IEntityRepositoryBase { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Repository/IProviderAdminRepository.cs b/OutOfSchool/OutOfSchool.DataAccess/Repository/IProviderAdminRepository.cs index b777187328..6d5844ff52 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Repository/IProviderAdminRepository.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Repository/IProviderAdminRepository.cs @@ -1,9 +1,4 @@ -using System; -using System.Threading.Tasks; - -using OutOfSchool.Services.Models; - -namespace OutOfSchool.Services.Repository; +namespace OutOfSchool.Services.Repository; public interface IProviderAdminRepository : IEntityRepository { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Repository/IProviderRepository.cs b/OutOfSchool/OutOfSchool.DataAccess/Repository/IProviderRepository.cs index 85e1bef3db..72a121e586 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Repository/IProviderRepository.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Repository/IProviderRepository.cs @@ -1,6 +1,4 @@ -using OutOfSchool.Services.Models; - -namespace OutOfSchool.Services.Repository; +namespace OutOfSchool.Services.Repository; public interface IProviderRepository : ISensitiveEntityRepository, IExistable { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Repository/IRatingRepository.cs b/OutOfSchool/OutOfSchool.DataAccess/Repository/IRatingRepository.cs index 94a37365c3..dc51591880 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Repository/IRatingRepository.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Repository/IRatingRepository.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using OutOfSchool.Services.Enums; -using OutOfSchool.Services.Models; - -namespace OutOfSchool.Services.Repository; +namespace OutOfSchool.Services.Repository; public interface IRatingRepository : IEntityRepository { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Repository/IWorkshopRepository.cs b/OutOfSchool/OutOfSchool.DataAccess/Repository/IWorkshopRepository.cs index c884ce21b0..b7720f9432 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Repository/IWorkshopRepository.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Repository/IWorkshopRepository.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Threading.Tasks; -using OutOfSchool.Services.Models; - -namespace OutOfSchool.Services.Repository; +namespace OutOfSchool.Services.Repository; public interface IWorkshopRepository : IEntityRepositoryBase { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Repository/NotificationRepository.cs b/OutOfSchool/OutOfSchool.DataAccess/Repository/NotificationRepository.cs index c7bcff8649..87a23fcb6b 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Repository/NotificationRepository.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Repository/NotificationRepository.cs @@ -1,12 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using Microsoft.EntityFrameworkCore; -using OutOfSchool.Services.Enums; -using OutOfSchool.Services.Models; - -namespace OutOfSchool.Services.Repository; +namespace OutOfSchool.Services.Repository; /// /// Defines interface for CRUD functionality for Notification entity. diff --git a/OutOfSchool/OutOfSchool.DataAccess/Repository/ParentRepository.cs b/OutOfSchool/OutOfSchool.DataAccess/Repository/ParentRepository.cs index 555adbeacf..79e385f7ad 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Repository/ParentRepository.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Repository/ParentRepository.cs @@ -1,11 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using Microsoft.EntityFrameworkCore; -using OutOfSchool.Services.Models; - -namespace OutOfSchool.Services.Repository; +namespace OutOfSchool.Services.Repository; public class ParentRepository : EntityRepositoryBase, IParentRepository { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Repository/ProviderAdminRepository.cs b/OutOfSchool/OutOfSchool.DataAccess/Repository/ProviderAdminRepository.cs index 229167c695..1fc040eade 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Repository/ProviderAdminRepository.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Repository/ProviderAdminRepository.cs @@ -1,13 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; - -using Microsoft.EntityFrameworkCore; - -using OutOfSchool.Services.Models; - -namespace OutOfSchool.Services.Repository; +namespace OutOfSchool.Services.Repository; public class ProviderAdminRepository : EntityRepository, IProviderAdminRepository { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Repository/ProviderRepository.cs b/OutOfSchool/OutOfSchool.DataAccess/Repository/ProviderRepository.cs index d7507182bf..378fc7eec4 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Repository/ProviderRepository.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Repository/ProviderRepository.cs @@ -1,9 +1,4 @@ -using System.Linq; -using System.Threading.Tasks; -using Microsoft.EntityFrameworkCore; -using OutOfSchool.Services.Models; - -namespace OutOfSchool.Services.Repository; +namespace OutOfSchool.Services.Repository; public class ProviderRepository : SensitiveEntityRepository, IProviderRepository { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Repository/RatingRepository.cs b/OutOfSchool/OutOfSchool.DataAccess/Repository/RatingRepository.cs index a5740f282f..dac0a01c0a 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Repository/RatingRepository.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Repository/RatingRepository.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using OutOfSchool.Services.Enums; -using OutOfSchool.Services.Models; - -namespace OutOfSchool.Services.Repository; +namespace OutOfSchool.Services.Repository; public class RatingRepository : EntityRepository, IRatingRepository { diff --git a/OutOfSchool/OutOfSchool.DataAccess/Repository/SensitiveEntityRepository{T}.cs b/OutOfSchool/OutOfSchool.DataAccess/Repository/SensitiveEntityRepository{T}.cs index de0102c0ff..ced1607bf3 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Repository/SensitiveEntityRepository{T}.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Repository/SensitiveEntityRepository{T}.cs @@ -1,6 +1,4 @@ -using System; - -namespace OutOfSchool.Services.Repository; +namespace OutOfSchool.Services.Repository; public class SensitiveEntityRepository : EntityRepositoryBase, ISensitiveEntityRepository where T : class, new() diff --git a/OutOfSchool/OutOfSchool.DataAccess/Repository/WorkshopRepository.cs b/OutOfSchool/OutOfSchool.DataAccess/Repository/WorkshopRepository.cs index 6109e3fb4f..411a61d312 100644 --- a/OutOfSchool/OutOfSchool.DataAccess/Repository/WorkshopRepository.cs +++ b/OutOfSchool/OutOfSchool.DataAccess/Repository/WorkshopRepository.cs @@ -1,11 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using Microsoft.EntityFrameworkCore; -using OutOfSchool.Services.Models; - -namespace OutOfSchool.Services.Repository; +namespace OutOfSchool.Services.Repository; public class WorkshopRepository : SensitiveEntityRepository, IWorkshopRepository { diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Controllers/AccountController.cs b/OutOfSchool/OutOfSchool.IdentityServer/Controllers/AccountController.cs index 8aef2c5144..5e94f4681c 100644 --- a/OutOfSchool/OutOfSchool.IdentityServer/Controllers/AccountController.cs +++ b/OutOfSchool/OutOfSchool.IdentityServer/Controllers/AccountController.cs @@ -1,8 +1,6 @@ using System.Text.Encodings.Web; -using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; using Microsoft.Extensions.Localization; -using OutOfSchool.IdentityServer.ViewModels; using OutOfSchool.RazorTemplatesData.Models.Emails; namespace OutOfSchool.IdentityServer.Controllers; diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Controllers/AuthController.cs b/OutOfSchool/OutOfSchool.IdentityServer/Controllers/AuthController.cs index e299de19f1..6b907b9a74 100644 --- a/OutOfSchool/OutOfSchool.IdentityServer/Controllers/AuthController.cs +++ b/OutOfSchool/OutOfSchool.IdentityServer/Controllers/AuthController.cs @@ -1,9 +1,6 @@ using IdentityServer4.Services; -using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; using Microsoft.Extensions.Localization; -using Microsoft.Extensions.Options; -using OutOfSchool.IdentityServer.ViewModels; using OutOfSchool.Services.Enums; namespace OutOfSchool.IdentityServer.Controllers; diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Controllers/ProviderAdminController.cs b/OutOfSchool/OutOfSchool.IdentityServer/Controllers/ProviderAdminController.cs index 6c0adf9367..eb094ce437 100644 --- a/OutOfSchool/OutOfSchool.IdentityServer/Controllers/ProviderAdminController.cs +++ b/OutOfSchool/OutOfSchool.IdentityServer/Controllers/ProviderAdminController.cs @@ -1,6 +1,4 @@ -using Microsoft.AspNetCore.Mvc; -using Microsoft.AspNetCore.Mvc.Filters; -using OutOfSchool.Common.Models; +using Microsoft.AspNetCore.Mvc.Filters; namespace OutOfSchool.IdentityServer.Controllers; diff --git a/OutOfSchool/OutOfSchool.IdentityServer/GlobalUsings.cs b/OutOfSchool/OutOfSchool.IdentityServer/GlobalUsings.cs index 83aa1a0f55..4221297c77 100644 --- a/OutOfSchool/OutOfSchool.IdentityServer/GlobalUsings.cs +++ b/OutOfSchool/OutOfSchool.IdentityServer/GlobalUsings.cs @@ -13,16 +13,19 @@ global using Microsoft.AspNetCore.Http.Extensions; global using Microsoft.AspNetCore.Identity; global using Microsoft.AspNetCore.Localization; +global using Microsoft.AspNetCore.Mvc; global using Microsoft.AspNetCore.Mvc.Razor; global using Microsoft.AspNetCore.WebUtilities; global using Microsoft.EntityFrameworkCore; global using Microsoft.Extensions.Configuration; global using Microsoft.Extensions.DependencyInjection; +global using Microsoft.Extensions.Options; global using MySqlConnector; global using OutOfSchool.Common; global using OutOfSchool.Common.Config; global using OutOfSchool.Common.Extensions; global using OutOfSchool.Common.Extensions.Startup; +global using OutOfSchool.Common.Models; global using OutOfSchool.Common.PermissionsModule; global using OutOfSchool.EmailSender; global using OutOfSchool.IdentityServer; @@ -32,6 +35,7 @@ global using OutOfSchool.IdentityServer.Services.Intefaces; global using OutOfSchool.IdentityServer.Services.Interfaces; global using OutOfSchool.IdentityServer.Util; +global using OutOfSchool.IdentityServer.ViewModels; global using OutOfSchool.RazorTemplatesData.Services; global using OutOfSchool.Services; global using OutOfSchool.Services.Extensions; diff --git a/OutOfSchool/OutOfSchool.IdentityServer/KeyManagement/KeyManager.cs b/OutOfSchool/OutOfSchool.IdentityServer/KeyManagement/KeyManager.cs index 2e2f57ae76..82f7941e17 100644 --- a/OutOfSchool/OutOfSchool.IdentityServer/KeyManagement/KeyManager.cs +++ b/OutOfSchool/OutOfSchool.IdentityServer/KeyManagement/KeyManager.cs @@ -1,7 +1,6 @@ using System.Security.Cryptography; using System.Security.Cryptography.X509Certificates; using LazyCache; -using Microsoft.Extensions.Options; namespace OutOfSchool.IdentityServer.KeyManagement; diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Services/Interfaces/IProviderAdminService.cs b/OutOfSchool/OutOfSchool.IdentityServer/Services/Interfaces/IProviderAdminService.cs index 676c3e253d..df002b000a 100644 --- a/OutOfSchool/OutOfSchool.IdentityServer/Services/Interfaces/IProviderAdminService.cs +++ b/OutOfSchool/OutOfSchool.IdentityServer/Services/Interfaces/IProviderAdminService.cs @@ -1,7 +1,4 @@ -using Microsoft.AspNetCore.Mvc; -using OutOfSchool.Common.Models; - -namespace OutOfSchool.IdentityServer.Services.Intefaces; +namespace OutOfSchool.IdentityServer.Services.Intefaces; public interface IProviderAdminService { diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Services/ProviderAdminService.cs b/OutOfSchool/OutOfSchool.IdentityServer/Services/ProviderAdminService.cs index 05a772f246..16eb573656 100644 --- a/OutOfSchool/OutOfSchool.IdentityServer/Services/ProviderAdminService.cs +++ b/OutOfSchool/OutOfSchool.IdentityServer/Services/ProviderAdminService.cs @@ -1,7 +1,4 @@ using AutoMapper; -using Microsoft.AspNetCore.Mvc; -using Microsoft.Extensions.Options; -using OutOfSchool.Common.Models; using OutOfSchool.IdentityServer.Services.Password; using OutOfSchool.RazorTemplatesData.Models.Emails; using OutOfSchool.Services.Enums; diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Services/ProviderAdminServiceGRPC.cs b/OutOfSchool/OutOfSchool.IdentityServer/Services/ProviderAdminServiceGRPC.cs index d6ab4e87ba..c30de1745d 100644 --- a/OutOfSchool/OutOfSchool.IdentityServer/Services/ProviderAdminServiceGRPC.cs +++ b/OutOfSchool/OutOfSchool.IdentityServer/Services/ProviderAdminServiceGRPC.cs @@ -1,7 +1,6 @@ using AutoMapper; using Grpc.Core; using GrpcService; -using OutOfSchool.Common.Models; namespace GrpcServiceServer; diff --git a/OutOfSchool/OutOfSchool.IdentityServer/Util/MappingProfile.cs b/OutOfSchool/OutOfSchool.IdentityServer/Util/MappingProfile.cs index 5258bbe155..9a63c05909 100644 --- a/OutOfSchool/OutOfSchool.IdentityServer/Util/MappingProfile.cs +++ b/OutOfSchool/OutOfSchool.IdentityServer/Util/MappingProfile.cs @@ -1,7 +1,6 @@ using AutoMapper; using Google.Protobuf.WellKnownTypes; using GrpcService; -using OutOfSchool.Common.Models; namespace OutOfSchool.IdentityServer.Util; diff --git a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/AboutPortalController.cs b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/AboutPortalController.cs index 5a9210374d..99a0b9687d 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/AboutPortalController.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/AboutPortalController.cs @@ -1,5 +1,4 @@ -using Microsoft.AspNetCore.Mvc; -using Microsoft.Extensions.Localization; +using Microsoft.Extensions.Localization; using OutOfSchool.Services.Enums; namespace OutOfSchool.WebApi.Controllers.V1; diff --git a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/AchievementController.cs b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/AchievementController.cs index 83401ec92b..2636566841 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/AchievementController.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/AchievementController.cs @@ -1,5 +1,4 @@ using System.Net.Mime; -using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Localization; using OutOfSchool.WebApi.Models; using OutOfSchool.WebApi.Models.Achievement; diff --git a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/AddressController.cs b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/AddressController.cs index 810cea04e8..862ba9b291 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/AddressController.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/AddressController.cs @@ -1,5 +1,4 @@ -using Microsoft.AspNetCore.Mvc; -using Microsoft.Extensions.Localization; +using Microsoft.Extensions.Localization; using OutOfSchool.WebApi.Models; namespace OutOfSchool.WebApi.Controllers.V1; diff --git a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/AdminController.cs b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/AdminController.cs index c8eaf90d9c..ea5ce5c475 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/AdminController.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/AdminController.cs @@ -1,5 +1,4 @@ using AutoMapper; -using Microsoft.AspNetCore.Mvc; using OutOfSchool.WebApi.Models; namespace OutOfSchool.WebApi.Controllers.V1; diff --git a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/ApplicationController.cs b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/ApplicationController.cs index 9b652e5628..7dcdc5aff7 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/ApplicationController.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/ApplicationController.cs @@ -1,7 +1,5 @@ -using Microsoft.AspNetCore.Mvc; -using Microsoft.Extensions.Localization; +using Microsoft.Extensions.Localization; using OutOfSchool.Services.Enums; -using OutOfSchool.WebApi.Common; using OutOfSchool.WebApi.Models; namespace OutOfSchool.WebApi.Controllers.V1; diff --git a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/BlockedProviderParentController.cs b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/BlockedProviderParentController.cs index b5cb6540d9..1b7a18d373 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/BlockedProviderParentController.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/BlockedProviderParentController.cs @@ -1,6 +1,4 @@ -using Microsoft.AspNetCore.Mvc; -using OutOfSchool.WebApi.Common; -using OutOfSchool.WebApi.Models.BlockedProviderParent; +using OutOfSchool.WebApi.Models.BlockedProviderParent; namespace OutOfSchool.WebApi.Controllers.V1; diff --git a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/ChangesLogController.cs b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/ChangesLogController.cs index 5937f0a056..36e9dd0d69 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/ChangesLogController.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/ChangesLogController.cs @@ -1,5 +1,4 @@ -using Microsoft.AspNetCore.Mvc; -using OutOfSchool.WebApi.Models; +using OutOfSchool.WebApi.Models; using OutOfSchool.WebApi.Models.Changes; namespace OutOfSchool.WebApi.Controllers.V1; diff --git a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/ChatWorkshopController.cs b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/ChatWorkshopController.cs index 066d6613b2..8bc4749c09 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/ChatWorkshopController.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/ChatWorkshopController.cs @@ -1,8 +1,6 @@ using System.Security.Authentication; -using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Localization; using OutOfSchool.Services.Enums; -using OutOfSchool.WebApi.Common; using OutOfSchool.WebApi.Models; using OutOfSchool.WebApi.Models.ChatWorkshop; diff --git a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/ChildController.cs b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/ChildController.cs index 2d391069a4..1ee3a0a2d5 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/ChildController.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/ChildController.cs @@ -1,6 +1,4 @@ -using Microsoft.AspNetCore.Mvc; -using OutOfSchool.WebApi.Common; -using OutOfSchool.WebApi.Models; +using OutOfSchool.WebApi.Models; namespace OutOfSchool.WebApi.Controllers.V1; diff --git a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/CityController.cs b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/CityController.cs index 178736adc8..3217daf104 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/CityController.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/CityController.cs @@ -1,5 +1,4 @@ -using Microsoft.AspNetCore.Mvc; -using Microsoft.Extensions.Localization; +using Microsoft.Extensions.Localization; using OutOfSchool.WebApi.Models; namespace OutOfSchool.WebApi.Controllers.V1; diff --git a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/ClassController.cs b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/ClassController.cs index 4963103e12..777edb54f5 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/ClassController.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/ClassController.cs @@ -1,5 +1,4 @@ using System.Net.Mime; -using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Localization; using OutOfSchool.WebApi.Models; diff --git a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/CodeficatorController.cs b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/CodeficatorController.cs index a3dad3460b..41a6b51042 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/CodeficatorController.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/CodeficatorController.cs @@ -1,5 +1,4 @@ -using Microsoft.AspNetCore.Mvc; -using OutOfSchool.WebApi.Models.Codeficator; +using OutOfSchool.WebApi.Models.Codeficator; namespace OutOfSchool.WebApi.Controllers.V1; diff --git a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/CompanyInformationController.cs b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/CompanyInformationController.cs index 3a55b7272c..c00256a948 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/CompanyInformationController.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/CompanyInformationController.cs @@ -1,5 +1,4 @@ -using Microsoft.AspNetCore.Mvc; -using Microsoft.Extensions.Localization; +using Microsoft.Extensions.Localization; using OutOfSchool.Services.Enums; using OutOfSchool.WebApi.Models; diff --git a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/DepartmentController.cs b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/DepartmentController.cs index 5c52da553b..568e9bb11b 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/DepartmentController.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/DepartmentController.cs @@ -1,5 +1,4 @@ using System.Net.Mime; -using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Localization; using OutOfSchool.WebApi.Models; diff --git a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/DirectionController.cs b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/DirectionController.cs index e52d48427d..1487fc016d 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/DirectionController.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/DirectionController.cs @@ -1,5 +1,4 @@ using System.Net.Mime; -using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Localization; using OutOfSchool.WebApi.Models; diff --git a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/ElasticsearchSynchronizationController.cs b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/ElasticsearchSynchronizationController.cs index 5af86f801e..6a6846a654 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/ElasticsearchSynchronizationController.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/ElasticsearchSynchronizationController.cs @@ -1,6 +1,4 @@ -using Microsoft.AspNetCore.Mvc; - -namespace OutOfSchool.WebApi.Controllers.V1; +namespace OutOfSchool.WebApi.Controllers.V1; /// /// Controller for data synchronization between databases. diff --git a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/ElasticsearchWorkshopController.cs b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/ElasticsearchWorkshopController.cs index 1033717a97..b0b07b5544 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/ElasticsearchWorkshopController.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/ElasticsearchWorkshopController.cs @@ -1,6 +1,4 @@ -using Microsoft.AspNetCore.Mvc; - -namespace OutOfSchool.WebApi.Controllers.V1; +namespace OutOfSchool.WebApi.Controllers.V1; [ApiController] [ApiVersion("1.0")] diff --git a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/FavoriteController.cs b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/FavoriteController.cs index 754f14ef7b..dc3735a67d 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/FavoriteController.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/FavoriteController.cs @@ -1,5 +1,4 @@ -using Microsoft.AspNetCore.Mvc; -using Microsoft.Extensions.Localization; +using Microsoft.Extensions.Localization; using OutOfSchool.WebApi.Models; namespace OutOfSchool.WebApi.Controllers.V1; diff --git a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/FeatureManagementController.cs b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/FeatureManagementController.cs index 808da91441..13651ec19f 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/FeatureManagementController.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/FeatureManagementController.cs @@ -1,7 +1,4 @@ -using Microsoft.AspNetCore.Mvc; -using Microsoft.Extensions.Options; - -namespace OutOfSchool.WebApi.Controllers.V1; +namespace OutOfSchool.WebApi.Controllers.V1; [ApiController] [ApiVersion("1.0")] diff --git a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/InstitutionStatusController.cs b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/InstitutionStatusController.cs index 6d17f0c7b3..1d35b609b8 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/InstitutionStatusController.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/InstitutionStatusController.cs @@ -1,5 +1,4 @@ -using Microsoft.AspNetCore.Mvc; -using Microsoft.Extensions.Localization; +using Microsoft.Extensions.Localization; using OutOfSchool.WebApi.Models; namespace OutOfSchool.WebApi.Controllers.V1; diff --git a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/LawsAndRegulationsController.cs b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/LawsAndRegulationsController.cs index e024383e3c..42078a05a0 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/LawsAndRegulationsController.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/LawsAndRegulationsController.cs @@ -1,5 +1,4 @@ -using Microsoft.AspNetCore.Mvc; -using Microsoft.Extensions.Localization; +using Microsoft.Extensions.Localization; using OutOfSchool.Services.Enums; namespace OutOfSchool.WebApi.Controllers.V1; diff --git a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/NotificationController.cs b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/NotificationController.cs index 7d7b8e3b84..03fa8e53c2 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/NotificationController.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/NotificationController.cs @@ -1,6 +1,4 @@ -using Microsoft.AspNetCore.Mvc; -using OutOfSchool.Services.Enums; -using OutOfSchool.WebApi.Common; +using OutOfSchool.Services.Enums; using OutOfSchool.WebApi.Models.Notifications; namespace OutOfSchool.WebApi.Controllers.V1; diff --git a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/ParentController.cs b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/ParentController.cs index 082549d45e..12e2430118 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/ParentController.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/ParentController.cs @@ -1,5 +1,4 @@ -using Microsoft.AspNetCore.Mvc; -using Microsoft.Extensions.Localization; +using Microsoft.Extensions.Localization; using OutOfSchool.WebApi.Models; namespace OutOfSchool.WebApi.Controllers.V1; diff --git a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/PermissionsForRoleController.cs b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/PermissionsForRoleController.cs index 32a8f7fe89..535aa461f6 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/PermissionsForRoleController.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/PermissionsForRoleController.cs @@ -1,5 +1,4 @@ -using Microsoft.AspNetCore.Mvc; -using OutOfSchool.WebApi.Models; +using OutOfSchool.WebApi.Models; namespace OutOfSchool.WebApi.Controllers.V1; diff --git a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/ProviderAdminController.cs b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/ProviderAdminController.cs index 2699462ff5..ef44259829 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/ProviderAdminController.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/ProviderAdminController.cs @@ -1,9 +1,7 @@ using Microsoft.AspNetCore.Authentication; -using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; using OutOfSchool.Common.Models; -using OutOfSchool.WebApi.Common; using OutOfSchool.WebApi.Models; namespace OutOfSchool.WebApi.Controllers; diff --git a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/ProviderController.cs b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/ProviderController.cs index 524447b8d1..ea01c5e28d 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/ProviderController.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/ProviderController.cs @@ -1,6 +1,4 @@ -using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Localization; -using OutOfSchool.WebApi.Common; using OutOfSchool.WebApi.Models; using OutOfSchool.WebApi.Models.Providers; diff --git a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/PublicImageController.cs b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/PublicImageController.cs index cc70ef5861..d5b6a4ddde 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/PublicImageController.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/PublicImageController.cs @@ -1,6 +1,4 @@ -using Microsoft.AspNetCore.Mvc; - -namespace OutOfSchool.WebApi.Controllers.V1; +namespace OutOfSchool.WebApi.Controllers.V1; [ApiController] [ApiVersion("1.0")] diff --git a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/RatingController.cs b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/RatingController.cs index 12af1a9276..bd834425ab 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/RatingController.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/RatingController.cs @@ -1,5 +1,4 @@ -using Microsoft.AspNetCore.Mvc; -using Microsoft.Extensions.Localization; +using Microsoft.Extensions.Localization; using OutOfSchool.Services.Enums; using OutOfSchool.WebApi.Models; diff --git a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/SocialGroupController.cs b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/SocialGroupController.cs index 6c0a88038e..8e0908af79 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/SocialGroupController.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/SocialGroupController.cs @@ -1,5 +1,4 @@ -using Microsoft.AspNetCore.Mvc; -using Microsoft.Extensions.Localization; +using Microsoft.Extensions.Localization; using OutOfSchool.WebApi.Models; namespace OutOfSchool.WebApi.Controllers.V1; diff --git a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/StatisticController.cs b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/StatisticController.cs index 23f2fe99f4..55bb710a24 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/StatisticController.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/StatisticController.cs @@ -1,5 +1,4 @@ -using Microsoft.AspNetCore.Mvc; -using OutOfSchool.WebApi.Models; +using OutOfSchool.WebApi.Models; namespace OutOfSchool.WebApi.Controllers.V1; diff --git a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/SubordinationStructure/InstitutionController.cs b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/SubordinationStructure/InstitutionController.cs index 8d68515461..4d1b1514c8 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/SubordinationStructure/InstitutionController.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/SubordinationStructure/InstitutionController.cs @@ -1,5 +1,4 @@ -using Microsoft.AspNetCore.Mvc; -using OutOfSchool.WebApi.Models.SubordinationStructure; +using OutOfSchool.WebApi.Models.SubordinationStructure; namespace OutOfSchool.WebApi.Controllers.V1.SubordinationStructure; diff --git a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/SubordinationStructure/InstitutionFieldDescriptionController.cs b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/SubordinationStructure/InstitutionFieldDescriptionController.cs index f0be59b7d5..fff4817d3b 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/SubordinationStructure/InstitutionFieldDescriptionController.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/SubordinationStructure/InstitutionFieldDescriptionController.cs @@ -1,5 +1,4 @@ -using Microsoft.AspNetCore.Mvc; -using OutOfSchool.WebApi.Models.SubordinationStructure; +using OutOfSchool.WebApi.Models.SubordinationStructure; namespace OutOfSchool.WebApi.Controllers.V1.SubordinationStructure; diff --git a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/SubordinationStructure/InstitutionHierarchyController.cs b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/SubordinationStructure/InstitutionHierarchyController.cs index 00debd457f..674bff43b8 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/SubordinationStructure/InstitutionHierarchyController.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/SubordinationStructure/InstitutionHierarchyController.cs @@ -1,5 +1,4 @@ -using Microsoft.AspNetCore.Mvc; -using OutOfSchool.WebApi.Models.SubordinationStructure; +using OutOfSchool.WebApi.Models.SubordinationStructure; namespace OutOfSchool.WebApi.Controllers.V1.SubordinationStructure; diff --git a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/SupportInformationController.cs b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/SupportInformationController.cs index 5e0413027b..658a1b89a2 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/SupportInformationController.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/SupportInformationController.cs @@ -1,5 +1,4 @@ -using Microsoft.AspNetCore.Mvc; -using Microsoft.Extensions.Localization; +using Microsoft.Extensions.Localization; using OutOfSchool.Services.Enums; namespace OutOfSchool.WebApi.Controllers.V1; diff --git a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/TeacherController.cs b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/TeacherController.cs index a1c1ff510a..6bde7b43a6 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/TeacherController.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/TeacherController.cs @@ -1,4 +1,3 @@ -using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Localization; using OutOfSchool.Services.Enums; using OutOfSchool.WebApi.Models; diff --git a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/UserController.cs b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/UserController.cs index 7d38674d9d..1a5ba4de81 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/UserController.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/UserController.cs @@ -1,5 +1,4 @@ -using Microsoft.AspNetCore.Mvc; -using OutOfSchool.WebApi.Models; +using OutOfSchool.WebApi.Models; namespace OutOfSchool.WebApi.Controllers.V1; diff --git a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/WorkshopController.cs b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/WorkshopController.cs index 652dcf7ea9..438a5683be 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/WorkshopController.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Controllers/V1/WorkshopController.cs @@ -1,6 +1,4 @@ -using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Localization; -using Microsoft.Extensions.Options; using OutOfSchool.Common.Enums; using OutOfSchool.Services.Enums; using OutOfSchool.WebApi.Models; diff --git a/OutOfSchool/OutOfSchool.WebApi/Controllers/V2/ProviderController.cs b/OutOfSchool/OutOfSchool.WebApi/Controllers/V2/ProviderController.cs index c2645068af..4b211aab8d 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Controllers/V2/ProviderController.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Controllers/V2/ProviderController.cs @@ -1,5 +1,3 @@ -using Microsoft.AspNetCore.Mvc; -using OutOfSchool.WebApi.Common; using OutOfSchool.WebApi.Models; using OutOfSchool.WebApi.Models.Providers; diff --git a/OutOfSchool/OutOfSchool.WebApi/Controllers/V2/TeacherController.cs b/OutOfSchool/OutOfSchool.WebApi/Controllers/V2/TeacherController.cs index 9b47e46d06..a6017b95d4 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Controllers/V2/TeacherController.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Controllers/V2/TeacherController.cs @@ -1,4 +1,3 @@ -using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Localization; using OutOfSchool.WebApi.Models; using OutOfSchool.WebApi.Models.Teachers; diff --git a/OutOfSchool/OutOfSchool.WebApi/Controllers/V2/WorkshopController.cs b/OutOfSchool/OutOfSchool.WebApi/Controllers/V2/WorkshopController.cs index 2b0605571a..e9d340fcef 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Controllers/V2/WorkshopController.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Controllers/V2/WorkshopController.cs @@ -1,6 +1,4 @@ -using Microsoft.AspNetCore.Mvc; -using Microsoft.Extensions.Localization; -using Microsoft.Extensions.Options; +using Microsoft.Extensions.Localization; using OutOfSchool.WebApi.Models; using OutOfSchool.WebApi.Models.Workshop; using OutOfSchool.WebApi.Util.ControllersResultsHelpers; diff --git a/OutOfSchool/OutOfSchool.WebApi/Extensions/ControllerExtension.cs b/OutOfSchool/OutOfSchool.WebApi/Extensions/ControllerExtension.cs index 622fbaca00..c58c00521f 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Extensions/ControllerExtension.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Extensions/ControllerExtension.cs @@ -1,5 +1,4 @@ -using Microsoft.AspNetCore.Mvc; -using Microsoft.Extensions.Localization; +using Microsoft.Extensions.Localization; namespace OutOfSchool.WebApi.Extensions; diff --git a/OutOfSchool/OutOfSchool.WebApi/Extensions/ElasticsearchSynchronizationExtension.cs b/OutOfSchool/OutOfSchool.WebApi/Extensions/ElasticsearchSynchronizationExtension.cs index d20676ff8b..cc0fa86771 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Extensions/ElasticsearchSynchronizationExtension.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Extensions/ElasticsearchSynchronizationExtension.cs @@ -1,5 +1,4 @@ -using Microsoft.Extensions.Options; -using OutOfSchool.WebApi.Common.QuartzConstants; +using OutOfSchool.WebApi.Common.QuartzConstants; using OutOfSchool.WebApi.Services.Elasticsearch; using Quartz; diff --git a/OutOfSchool/OutOfSchool.WebApi/Extensions/ExceptionMiddlewareExtension.cs b/OutOfSchool/OutOfSchool.WebApi/Extensions/ExceptionMiddlewareExtension.cs index 736b9216f0..eae59d36e3 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Extensions/ExceptionMiddlewareExtension.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Extensions/ExceptionMiddlewareExtension.cs @@ -1,5 +1,4 @@ using System.Text.Json; -using Microsoft.Extensions.Options; namespace OutOfSchool.WebApi.Extensions; diff --git a/OutOfSchool/OutOfSchool.WebApi/Extensions/OperationExtensions.cs b/OutOfSchool/OutOfSchool.WebApi/Extensions/OperationExtensions.cs index 1787b7373c..465ab8f9b6 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Extensions/OperationExtensions.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Extensions/OperationExtensions.cs @@ -1,5 +1,4 @@ -using OutOfSchool.WebApi.Common; -using OutOfSchool.WebApi.Common.Resources.Codes; +using OutOfSchool.WebApi.Common.Resources.Codes; namespace OutOfSchool.WebApi.Extensions; diff --git a/OutOfSchool/OutOfSchool.WebApi/Extensions/Startup/ApiVersioningExtensions.cs b/OutOfSchool/OutOfSchool.WebApi/Extensions/Startup/ApiVersioningExtensions.cs index 5b644e138c..9fb63f4da9 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Extensions/Startup/ApiVersioningExtensions.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Extensions/Startup/ApiVersioningExtensions.cs @@ -1,4 +1,3 @@ -using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Versioning; namespace OutOfSchool.WebApi.Extensions.Startup; diff --git a/OutOfSchool/OutOfSchool.WebApi/Extensions/Startup/CustomSwaggerOptions.cs b/OutOfSchool/OutOfSchool.WebApi/Extensions/Startup/CustomSwaggerOptions.cs index a06504f241..7c31038c16 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Extensions/Startup/CustomSwaggerOptions.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Extensions/Startup/CustomSwaggerOptions.cs @@ -1,4 +1,3 @@ -using Microsoft.Extensions.Options; using Microsoft.OpenApi.Models; using Swashbuckle.AspNetCore.SwaggerGen; diff --git a/OutOfSchool/OutOfSchool.WebApi/Extensions/Startup/FileStorageExtensions.cs b/OutOfSchool/OutOfSchool.WebApi/Extensions/Startup/FileStorageExtensions.cs index 112b9621b3..0133a96ab9 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Extensions/Startup/FileStorageExtensions.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Extensions/Startup/FileStorageExtensions.cs @@ -1,5 +1,4 @@ using Google.Cloud.Storage.V1; -using Microsoft.Extensions.Options; using OutOfSchool.Services.Contexts; using OutOfSchool.Services.Repository.Files; using OutOfSchool.WebApi.Common.QuartzConstants; diff --git a/OutOfSchool/OutOfSchool.WebApi/GlobalUsings.cs b/OutOfSchool/OutOfSchool.WebApi/GlobalUsings.cs index c85dec333d..73e2bb6806 100644 --- a/OutOfSchool/OutOfSchool.WebApi/GlobalUsings.cs +++ b/OutOfSchool/OutOfSchool.WebApi/GlobalUsings.cs @@ -6,11 +6,13 @@ global using Microsoft.AspNetCore.Builder; global using Microsoft.AspNetCore.Hosting; global using Microsoft.AspNetCore.Localization; +global using Microsoft.AspNetCore.Mvc; global using Microsoft.AspNetCore.Mvc.ApiExplorer; global using Microsoft.EntityFrameworkCore; global using Microsoft.Extensions.Configuration; global using Microsoft.Extensions.DependencyInjection; global using Microsoft.Extensions.Hosting; +global using Microsoft.Extensions.Options; global using Microsoft.FeatureManagement; global using MySqlConnector; global using OutOfSchool.Common; @@ -30,6 +32,7 @@ global using OutOfSchool.Services.Models.SubordinationStructure; global using OutOfSchool.Services.Repository; global using OutOfSchool.WebApi; +global using OutOfSchool.WebApi.Common; global using OutOfSchool.WebApi.Config; global using OutOfSchool.WebApi.Config.DataAccess; global using OutOfSchool.WebApi.Config.Images; diff --git a/OutOfSchool/OutOfSchool.WebApi/Hubs/ChatWorkshopHub.cs b/OutOfSchool/OutOfSchool.WebApi/Hubs/ChatWorkshopHub.cs index 87d4657a2e..ce942ea183 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Hubs/ChatWorkshopHub.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Hubs/ChatWorkshopHub.cs @@ -4,7 +4,6 @@ using Microsoft.Extensions.Localization; using Newtonsoft.Json; using OutOfSchool.Services.Enums; -using OutOfSchool.WebApi.Common; using OutOfSchool.WebApi.Models.ChatWorkshop; namespace OutOfSchool.WebApi.Hubs; diff --git a/OutOfSchool/OutOfSchool.WebApi/Hubs/NotificationHub.cs b/OutOfSchool/OutOfSchool.WebApi/Hubs/NotificationHub.cs index 140cf8f420..07ca856ea1 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Hubs/NotificationHub.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Hubs/NotificationHub.cs @@ -1,5 +1,4 @@ using Microsoft.AspNetCore.SignalR; -using OutOfSchool.WebApi.Common; namespace OutOfSchool.WebApi.Hubs; diff --git a/OutOfSchool/OutOfSchool.WebApi/Models/CompanyInformationDto.cs b/OutOfSchool/OutOfSchool.WebApi/Models/CompanyInformationDto.cs index 8ea4724b6d..b6352d425a 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Models/CompanyInformationDto.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Models/CompanyInformationDto.cs @@ -1,5 +1,4 @@ using System.ComponentModel.DataAnnotations; -using Microsoft.AspNetCore.Mvc; using Newtonsoft.Json; using OutOfSchool.Services.Enums; using OutOfSchool.WebApi.Util.JsonTools; diff --git a/OutOfSchool/OutOfSchool.WebApi/Models/Images/ImageChangingResult.cs b/OutOfSchool/OutOfSchool.WebApi/Models/Images/ImageChangingResult.cs index daaaf889ca..afa6433461 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Models/Images/ImageChangingResult.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Models/Images/ImageChangingResult.cs @@ -1,6 +1,4 @@ -using OutOfSchool.WebApi.Common; - -namespace OutOfSchool.WebApi.Models.Images; +namespace OutOfSchool.WebApi.Models.Images; public class ImageChangingResult { diff --git a/OutOfSchool/OutOfSchool.WebApi/Models/Images/MultipleImageRemovingResponse.cs b/OutOfSchool/OutOfSchool.WebApi/Models/Images/MultipleImageRemovingResponse.cs index 9bacabeec9..4fdc168896 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Models/Images/MultipleImageRemovingResponse.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Models/Images/MultipleImageRemovingResponse.cs @@ -1,6 +1,4 @@ -using OutOfSchool.WebApi.Common; - -namespace OutOfSchool.WebApi.Models.Images; +namespace OutOfSchool.WebApi.Models.Images; public class MultipleImageRemovingResponse { diff --git a/OutOfSchool/OutOfSchool.WebApi/Models/Images/MultipleImageRemovingResult.cs b/OutOfSchool/OutOfSchool.WebApi/Models/Images/MultipleImageRemovingResult.cs index 22f126dc2e..36765c8f3f 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Models/Images/MultipleImageRemovingResult.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Models/Images/MultipleImageRemovingResult.cs @@ -1,6 +1,4 @@ -using OutOfSchool.WebApi.Common; - -namespace OutOfSchool.WebApi.Models.Images; +namespace OutOfSchool.WebApi.Models.Images; public class MultipleImageRemovingResult { diff --git a/OutOfSchool/OutOfSchool.WebApi/Models/Images/MultipleImageUploadingResponse.cs b/OutOfSchool/OutOfSchool.WebApi/Models/Images/MultipleImageUploadingResponse.cs index 15b43c4368..900418c27a 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Models/Images/MultipleImageUploadingResponse.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Models/Images/MultipleImageUploadingResponse.cs @@ -1,6 +1,4 @@ -using OutOfSchool.WebApi.Common; - -namespace OutOfSchool.WebApi.Models.Images; +namespace OutOfSchool.WebApi.Models.Images; public class MultipleImageUploadingResponse { diff --git a/OutOfSchool/OutOfSchool.WebApi/Models/Images/MultipleImageUploadingResult.cs b/OutOfSchool/OutOfSchool.WebApi/Models/Images/MultipleImageUploadingResult.cs index 88a6611d54..d381615444 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Models/Images/MultipleImageUploadingResult.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Models/Images/MultipleImageUploadingResult.cs @@ -1,6 +1,4 @@ -using OutOfSchool.WebApi.Common; - -namespace OutOfSchool.WebApi.Models.Images; +namespace OutOfSchool.WebApi.Models.Images; public class MultipleImageUploadingResult { diff --git a/OutOfSchool/OutOfSchool.WebApi/Models/Images/SingleImageRemovingResponse.cs b/OutOfSchool/OutOfSchool.WebApi/Models/Images/SingleImageRemovingResponse.cs index 94bf07e3c8..7923118efc 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Models/Images/SingleImageRemovingResponse.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Models/Images/SingleImageRemovingResponse.cs @@ -1,6 +1,4 @@ -using OutOfSchool.WebApi.Common; - -namespace OutOfSchool.WebApi.Models.Images; +namespace OutOfSchool.WebApi.Models.Images; public class SingleImageRemovingResponse { diff --git a/OutOfSchool/OutOfSchool.WebApi/Models/Images/SingleImageUploadingResponse.cs b/OutOfSchool/OutOfSchool.WebApi/Models/Images/SingleImageUploadingResponse.cs index ada7a28918..e030015214 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Models/Images/SingleImageUploadingResponse.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Models/Images/SingleImageUploadingResponse.cs @@ -1,6 +1,4 @@ -using OutOfSchool.WebApi.Common; - -namespace OutOfSchool.WebApi.Models.Images; +namespace OutOfSchool.WebApi.Models.Images; public class SingleImageUploadingResponse { diff --git a/OutOfSchool/OutOfSchool.WebApi/Models/Providers/ProviderDto.cs b/OutOfSchool/OutOfSchool.WebApi/Models/Providers/ProviderDto.cs index ec2f2c2117..a5f62b2afc 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Models/Providers/ProviderDto.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Models/Providers/ProviderDto.cs @@ -1,5 +1,4 @@ using System.ComponentModel.DataAnnotations; -using Microsoft.AspNetCore.Mvc; using Newtonsoft.Json; using OutOfSchool.Common.Enums; using OutOfSchool.Services.Enums; diff --git a/OutOfSchool/OutOfSchool.WebApi/Models/Teachers/TeacherCreationResultDto.cs b/OutOfSchool/OutOfSchool.WebApi/Models/Teachers/TeacherCreationResultDto.cs index 33c14df6be..116eb89933 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Models/Teachers/TeacherCreationResultDto.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Models/Teachers/TeacherCreationResultDto.cs @@ -1,6 +1,4 @@ -using OutOfSchool.WebApi.Common; - -namespace OutOfSchool.WebApi.Models.Teachers; +namespace OutOfSchool.WebApi.Models.Teachers; public class TeacherCreationResultDto { diff --git a/OutOfSchool/OutOfSchool.WebApi/Models/Teachers/TeacherUpdateResultDto.cs b/OutOfSchool/OutOfSchool.WebApi/Models/Teachers/TeacherUpdateResultDto.cs index c0d64c5910..b69ddd6410 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Models/Teachers/TeacherUpdateResultDto.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Models/Teachers/TeacherUpdateResultDto.cs @@ -1,6 +1,4 @@ -using OutOfSchool.WebApi.Common; - -namespace OutOfSchool.WebApi.Models.Teachers; +namespace OutOfSchool.WebApi.Models.Teachers; public class TeacherUpdateResultDto { diff --git a/OutOfSchool/OutOfSchool.WebApi/Models/Workshop/WorkshopCreationResultDto.cs b/OutOfSchool/OutOfSchool.WebApi/Models/Workshop/WorkshopCreationResultDto.cs index faac361236..6de882bc25 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Models/Workshop/WorkshopCreationResultDto.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Models/Workshop/WorkshopCreationResultDto.cs @@ -1,6 +1,4 @@ -using OutOfSchool.WebApi.Common; - -namespace OutOfSchool.WebApi.Models.Workshop; +namespace OutOfSchool.WebApi.Models.Workshop; public class WorkshopCreationResultDto { diff --git a/OutOfSchool/OutOfSchool.WebApi/Models/Workshop/WorkshopDTO.cs b/OutOfSchool/OutOfSchool.WebApi/Models/Workshop/WorkshopDTO.cs index 50fee45bec..b3efcc5ea7 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Models/Workshop/WorkshopDTO.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Models/Workshop/WorkshopDTO.cs @@ -1,7 +1,6 @@ using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Castle.Core.Internal; -using Microsoft.AspNetCore.Mvc; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using OutOfSchool.Common.Enums; diff --git a/OutOfSchool/OutOfSchool.WebApi/Models/Workshop/WorkshopUpdateResultDto.cs b/OutOfSchool/OutOfSchool.WebApi/Models/Workshop/WorkshopUpdateResultDto.cs index fd7ceacadd..4cbe05f909 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Models/Workshop/WorkshopUpdateResultDto.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Models/Workshop/WorkshopUpdateResultDto.cs @@ -1,6 +1,4 @@ -using OutOfSchool.WebApi.Common; - -namespace OutOfSchool.WebApi.Models.Workshop; +namespace OutOfSchool.WebApi.Models.Workshop; public class WorkshopUpdateResultDto { diff --git a/OutOfSchool/OutOfSchool.WebApi/Services/ApplicationService.cs b/OutOfSchool/OutOfSchool.WebApi/Services/ApplicationService.cs index 4592d6d4cf..bf099535de 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Services/ApplicationService.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Services/ApplicationService.cs @@ -1,7 +1,6 @@ using System.Linq.Expressions; using AutoMapper; using Microsoft.Extensions.Localization; -using Microsoft.Extensions.Options; using OutOfSchool.Common.Enums; using OutOfSchool.Services.Enums; using OutOfSchool.WebApi.Models; diff --git a/OutOfSchool/OutOfSchool.WebApi/Services/BlockedProviderParentService.cs b/OutOfSchool/OutOfSchool.WebApi/Services/BlockedProviderParentService.cs index 5cf87552b9..c6e6f87c43 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Services/BlockedProviderParentService.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Services/BlockedProviderParentService.cs @@ -1,6 +1,5 @@ using AutoMapper; using Microsoft.Extensions.Localization; -using OutOfSchool.WebApi.Common; using OutOfSchool.WebApi.Models.BlockedProviderParent; namespace OutOfSchool.WebApi.Services; diff --git a/OutOfSchool/OutOfSchool.WebApi/Services/ChangesLogService.cs b/OutOfSchool/OutOfSchool.WebApi/Services/ChangesLogService.cs index 76f11b9bcd..3eac15fc17 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Services/ChangesLogService.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Services/ChangesLogService.cs @@ -1,6 +1,5 @@ using System.Linq.Expressions; using AutoMapper; -using Microsoft.Extensions.Options; using OutOfSchool.Services.Enums; using OutOfSchool.WebApi.Models; using OutOfSchool.WebApi.Models.Changes; diff --git a/OutOfSchool/OutOfSchool.WebApi/Services/ClassService.cs b/OutOfSchool/OutOfSchool.WebApi/Services/ClassService.cs index 48ef8c9d5f..f4387bfd9d 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Services/ClassService.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Services/ClassService.cs @@ -1,6 +1,5 @@ using AutoMapper; using Microsoft.Extensions.Localization; -using OutOfSchool.WebApi.Common; using OutOfSchool.WebApi.Models; namespace OutOfSchool.WebApi.Services; diff --git a/OutOfSchool/OutOfSchool.WebApi/Services/Database/WorkshopService.cs b/OutOfSchool/OutOfSchool.WebApi/Services/Database/WorkshopService.cs index 09d16eb5d1..04eb3d15f2 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Services/Database/WorkshopService.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Services/Database/WorkshopService.cs @@ -5,7 +5,6 @@ using OutOfSchool.Common.Enums; using OutOfSchool.Services.Enums; using OutOfSchool.Services.Models.Images; -using OutOfSchool.WebApi.Common; using OutOfSchool.WebApi.Enums; using OutOfSchool.WebApi.Models; using OutOfSchool.WebApi.Models.Images; diff --git a/OutOfSchool/OutOfSchool.WebApi/Services/DepartmentService.cs b/OutOfSchool/OutOfSchool.WebApi/Services/DepartmentService.cs index d53796bc7d..f56808faf3 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Services/DepartmentService.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Services/DepartmentService.cs @@ -1,6 +1,5 @@ using AutoMapper; using Microsoft.Extensions.Localization; -using OutOfSchool.WebApi.Common; using OutOfSchool.WebApi.Models; namespace OutOfSchool.WebApi.Services; diff --git a/OutOfSchool/OutOfSchool.WebApi/Services/DirectionService.cs b/OutOfSchool/OutOfSchool.WebApi/Services/DirectionService.cs index 1d0e333353..8dad8af7c0 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Services/DirectionService.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Services/DirectionService.cs @@ -1,6 +1,5 @@ using AutoMapper; using Microsoft.Extensions.Localization; -using OutOfSchool.WebApi.Common; using OutOfSchool.WebApi.Models; namespace OutOfSchool.WebApi.Services; diff --git a/OutOfSchool/OutOfSchool.WebApi/Services/Elasticsearch/ElasticPinger.cs b/OutOfSchool/OutOfSchool.WebApi/Services/Elasticsearch/ElasticPinger.cs index 34269941e8..8fae5d6150 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Services/Elasticsearch/ElasticPinger.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Services/Elasticsearch/ElasticPinger.cs @@ -1,5 +1,4 @@ -using Microsoft.Extensions.Options; -using Nest; +using Nest; namespace OutOfSchool.WebApi.Services; diff --git a/OutOfSchool/OutOfSchool.WebApi/Services/Elasticsearch/ElasticsearchSynchronizationService.cs b/OutOfSchool/OutOfSchool.WebApi/Services/Elasticsearch/ElasticsearchSynchronizationService.cs index 658fdad6ff..8680a70b5c 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Services/Elasticsearch/ElasticsearchSynchronizationService.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Services/Elasticsearch/ElasticsearchSynchronizationService.cs @@ -1,5 +1,4 @@ using AutoMapper; -using Microsoft.Extensions.Options; using Nest; using OutOfSchool.Services.Enums; diff --git a/OutOfSchool/OutOfSchool.WebApi/Services/GRPC/GRPCCommonService.cs b/OutOfSchool/OutOfSchool.WebApi/Services/GRPC/GRPCCommonService.cs index 49c1f68d17..a5d1f936df 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Services/GRPC/GRPCCommonService.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Services/GRPC/GRPCCommonService.cs @@ -1,7 +1,6 @@ using Grpc.Core; using Grpc.Net.Client; using Grpc.Net.Client.Configuration; -using Microsoft.Extensions.Options; namespace OutOfSchool.GRPC; diff --git a/OutOfSchool/OutOfSchool.WebApi/Services/IBlockedProviderParentService.cs b/OutOfSchool/OutOfSchool.WebApi/Services/IBlockedProviderParentService.cs index e77a53a55a..1931123069 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Services/IBlockedProviderParentService.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Services/IBlockedProviderParentService.cs @@ -1,5 +1,4 @@ -using OutOfSchool.WebApi.Common; -using OutOfSchool.WebApi.Models.BlockedProviderParent; +using OutOfSchool.WebApi.Models.BlockedProviderParent; namespace OutOfSchool.WebApi.Services; diff --git a/OutOfSchool/OutOfSchool.WebApi/Services/IClassService.cs b/OutOfSchool/OutOfSchool.WebApi/Services/IClassService.cs index 99566de16c..f197c38bbb 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Services/IClassService.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Services/IClassService.cs @@ -1,5 +1,4 @@ -using OutOfSchool.WebApi.Common; -using OutOfSchool.WebApi.Models; +using OutOfSchool.WebApi.Models; namespace OutOfSchool.WebApi.Services; diff --git a/OutOfSchool/OutOfSchool.WebApi/Services/IDepartmentService.cs b/OutOfSchool/OutOfSchool.WebApi/Services/IDepartmentService.cs index aaa34d143e..5e8323bcdd 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Services/IDepartmentService.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Services/IDepartmentService.cs @@ -1,5 +1,4 @@ -using OutOfSchool.WebApi.Common; -using OutOfSchool.WebApi.Models; +using OutOfSchool.WebApi.Models; namespace OutOfSchool.WebApi.Services; diff --git a/OutOfSchool/OutOfSchool.WebApi/Services/IDirectionService.cs b/OutOfSchool/OutOfSchool.WebApi/Services/IDirectionService.cs index bbc9a78b41..956b41707f 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Services/IDirectionService.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Services/IDirectionService.cs @@ -1,5 +1,4 @@ -using OutOfSchool.WebApi.Common; -using OutOfSchool.WebApi.Models; +using OutOfSchool.WebApi.Models; namespace OutOfSchool.WebApi.Services; diff --git a/OutOfSchool/OutOfSchool.WebApi/Services/IFileValidator.cs b/OutOfSchool/OutOfSchool.WebApi/Services/IFileValidator.cs index f163bb845b..4396b14e51 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Services/IFileValidator.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Services/IFileValidator.cs @@ -1,5 +1,3 @@ -using OutOfSchool.WebApi.Common; - namespace OutOfSchool.WebApi.Services; public interface IFileValidator diff --git a/OutOfSchool/OutOfSchool.WebApi/Services/Images/IEntityCoverImageInteractionService.cs b/OutOfSchool/OutOfSchool.WebApi/Services/Images/IEntityCoverImageInteractionService.cs index c43df141c5..2f5e3f6923 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Services/Images/IEntityCoverImageInteractionService.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Services/Images/IEntityCoverImageInteractionService.cs @@ -1,5 +1,4 @@ -using OutOfSchool.WebApi.Common; -using OutOfSchool.WebApi.Models.Images; +using OutOfSchool.WebApi.Models.Images; namespace OutOfSchool.WebApi.Services.Images; diff --git a/OutOfSchool/OutOfSchool.WebApi/Services/Images/IEntitySetOfImagesInteractionService.cs b/OutOfSchool/OutOfSchool.WebApi/Services/Images/IEntitySetOfImagesInteractionService.cs index a132a579c9..f8fcc77eff 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Services/Images/IEntitySetOfImagesInteractionService.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Services/Images/IEntitySetOfImagesInteractionService.cs @@ -1,5 +1,4 @@ -using OutOfSchool.WebApi.Common; -using OutOfSchool.WebApi.Models.Images; +using OutOfSchool.WebApi.Models.Images; namespace OutOfSchool.WebApi.Services.Images; diff --git a/OutOfSchool/OutOfSchool.WebApi/Services/Images/IImageService.cs b/OutOfSchool/OutOfSchool.WebApi/Services/Images/IImageService.cs index eb21dd3037..c9154dcc8d 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Services/Images/IImageService.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Services/Images/IImageService.cs @@ -1,5 +1,4 @@ -using OutOfSchool.WebApi.Common; -using OutOfSchool.WebApi.Models.Images; +using OutOfSchool.WebApi.Models.Images; namespace OutOfSchool.WebApi.Services.Images; diff --git a/OutOfSchool/OutOfSchool.WebApi/Services/Images/ImageDependentEntityImagesInteractionService.cs b/OutOfSchool/OutOfSchool.WebApi/Services/Images/ImageDependentEntityImagesInteractionService.cs index afae7cdeee..c6db7adc0d 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Services/Images/ImageDependentEntityImagesInteractionService.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Services/Images/ImageDependentEntityImagesInteractionService.cs @@ -1,6 +1,4 @@ -using Microsoft.Extensions.Options; -using OutOfSchool.Services.Models.Images; -using OutOfSchool.WebApi.Common; +using OutOfSchool.Services.Models.Images; using OutOfSchool.WebApi.Common.Resources.Codes; using OutOfSchool.WebApi.Models.Images; diff --git a/OutOfSchool/OutOfSchool.WebApi/Services/Images/ImageService.cs b/OutOfSchool/OutOfSchool.WebApi/Services/Images/ImageService.cs index ad7a4877f2..bb662f2c7b 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Services/Images/ImageService.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Services/Images/ImageService.cs @@ -1,7 +1,6 @@ using OutOfSchool.Services.Common.Exceptions; using OutOfSchool.Services.Models.Images; using OutOfSchool.Services.Repository.Files; -using OutOfSchool.WebApi.Common; using OutOfSchool.WebApi.Common.Resources.Codes; using OutOfSchool.WebApi.Models.Images; diff --git a/OutOfSchool/OutOfSchool.WebApi/Services/Images/ImageValidator.cs b/OutOfSchool/OutOfSchool.WebApi/Services/Images/ImageValidator.cs index 230a504aa3..0fe52069f3 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Services/Images/ImageValidator.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Services/Images/ImageValidator.cs @@ -1,6 +1,4 @@ using System.Drawing; -using Microsoft.Extensions.Options; -using OutOfSchool.WebApi.Common; using OutOfSchool.WebApi.Common.Resources.Codes; namespace OutOfSchool.WebApi.Services.Images; diff --git a/OutOfSchool/OutOfSchool.WebApi/Services/NotificationService.cs b/OutOfSchool/OutOfSchool.WebApi/Services/NotificationService.cs index 1dcb990258..5f7e465f69 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Services/NotificationService.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Services/NotificationService.cs @@ -1,7 +1,6 @@ using AutoMapper; using Microsoft.AspNetCore.SignalR; using Microsoft.Extensions.Localization; -using Microsoft.Extensions.Options; using Newtonsoft.Json; using OutOfSchool.Services.Enums; using OutOfSchool.WebApi.Models.Notifications; diff --git a/OutOfSchool/OutOfSchool.WebApi/Services/ProviderAdminOperations/ProviderAdminOperationsRESTService.cs b/OutOfSchool/OutOfSchool.WebApi/Services/ProviderAdminOperations/ProviderAdminOperationsRESTService.cs index fd75d5cae7..5b35081638 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Services/ProviderAdminOperations/ProviderAdminOperationsRESTService.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Services/ProviderAdminOperations/ProviderAdminOperationsRESTService.cs @@ -1,5 +1,4 @@ -using Microsoft.Extensions.Options; -using Newtonsoft.Json; +using Newtonsoft.Json; using OutOfSchool.Common.Models; namespace OutOfSchool.WebApi.Services.ProviderAdminOperations; diff --git a/OutOfSchool/OutOfSchool.WebApi/Services/ProviderAdminService.cs b/OutOfSchool/OutOfSchool.WebApi/Services/ProviderAdminService.cs index 67c111bb8a..a27037e964 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Services/ProviderAdminService.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Services/ProviderAdminService.cs @@ -1,8 +1,6 @@ using AutoMapper; using Grpc.Core; using GrpcService; -using Microsoft.AspNetCore.Mvc; -using Microsoft.Extensions.Options; using Newtonsoft.Json; using OutOfSchool.Common.Models; diff --git a/OutOfSchool/OutOfSchool.WebApi/Services/SubordinationStructure/IInstitutionHierarchyService.cs b/OutOfSchool/OutOfSchool.WebApi/Services/SubordinationStructure/IInstitutionHierarchyService.cs index 8dca5bbae0..655438398d 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Services/SubordinationStructure/IInstitutionHierarchyService.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Services/SubordinationStructure/IInstitutionHierarchyService.cs @@ -1,5 +1,4 @@ -using OutOfSchool.WebApi.Common; -using OutOfSchool.WebApi.Models.SubordinationStructure; +using OutOfSchool.WebApi.Models.SubordinationStructure; namespace OutOfSchool.WebApi.Services.SubordinationStructure; diff --git a/OutOfSchool/OutOfSchool.WebApi/Services/SubordinationStructure/InstitutionHierarchyService.cs b/OutOfSchool/OutOfSchool.WebApi/Services/SubordinationStructure/InstitutionHierarchyService.cs index d28edbf797..91e5bfd406 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Services/SubordinationStructure/InstitutionHierarchyService.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Services/SubordinationStructure/InstitutionHierarchyService.cs @@ -1,6 +1,5 @@ using AutoMapper; using Microsoft.Extensions.Localization; -using OutOfSchool.WebApi.Common; using OutOfSchool.WebApi.Models.SubordinationStructure; namespace OutOfSchool.WebApi.Services.SubordinationStructure; diff --git a/OutOfSchool/OutOfSchool.WebApi/Services/TeacherService.cs b/OutOfSchool/OutOfSchool.WebApi/Services/TeacherService.cs index 4c1a04554c..74eb29f20b 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Services/TeacherService.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Services/TeacherService.cs @@ -1,6 +1,5 @@ using AutoMapper; using Microsoft.Extensions.Localization; -using OutOfSchool.WebApi.Common; using OutOfSchool.WebApi.Models; using OutOfSchool.WebApi.Models.Teachers; diff --git a/OutOfSchool/OutOfSchool.WebApi/Util/ControllersResultsHelpers/ImageResultsHelper.cs b/OutOfSchool/OutOfSchool.WebApi/Util/ControllersResultsHelpers/ImageResultsHelper.cs index 110d02b76e..0448fb4b20 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Util/ControllersResultsHelpers/ImageResultsHelper.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Util/ControllersResultsHelpers/ImageResultsHelper.cs @@ -1,5 +1,4 @@ -using OutOfSchool.WebApi.Common; -using OutOfSchool.WebApi.Models.Images; +using OutOfSchool.WebApi.Models.Images; namespace OutOfSchool.WebApi.Util.ControllersResultsHelpers; diff --git a/OutOfSchool/OutOfSchool.WebApi/Util/OperationResultHelper.cs b/OutOfSchool/OutOfSchool.WebApi/Util/OperationResultHelper.cs index f5cef51413..71aaff26aa 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Util/OperationResultHelper.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Util/OperationResultHelper.cs @@ -1,6 +1,4 @@ -using OutOfSchool.WebApi.Common; - -namespace OutOfSchool.WebApi.Util; +namespace OutOfSchool.WebApi.Util; public static class OperationResultHelper {