From d202d1541df868f8e0fe2ac17513d4ff8d4154ab Mon Sep 17 00:00:00 2001 From: sanchezvem Date: Tue, 17 Mar 2026 10:27:53 +0100 Subject: [PATCH] Cleaned code --- .idea/.idea.BookHive/.idea/workspace.xml | 49 ++--- BookHive/BookHiveDbContext.cs | 32 ++-- BookHive/DTO/Author/GetAuthorDetailsDto.cs | 2 +- BookHive/DTO/Loan/CreateLoanDto.cs | 2 +- BookHive/DTO/Loan/GetLoanDto.cs | 6 +- BookHive/DTO/Loan/UpdateLoanDto.cs | 4 +- BookHive/DTO/Member/CreateMemberDto.cs | 1 - BookHive/DTO/Review/CreateReviewDto.cs | 3 +- BookHive/DTO/Review/GetReviewDto.cs | 6 +- BookHive/DTO/Review/UpdateReviewDto.cs | 4 +- .../Endpoints/Authors/DeleteAuthorEndpoint.cs | 9 +- .../Endpoints/Authors/GetAuthorsEndpoint.cs | 2 +- .../Endpoints/Authors/UpdateAuthorEndpoint.cs | 2 +- .../Endpoints/Books/CreateBookEndpoint.cs | 3 +- BookHive/Endpoints/Books/GetBooksEndpoint.cs | 2 +- BookHive/Endpoints/Books/UpdateBookEndpoit.cs | 2 +- .../Endpoints/Loans/CreateLoanEndpoint.cs | 7 +- .../Loans/PatchReturnLoanEndpoint.cs | 2 +- .../Endpoints/Members/GetMembersEndpoint.cs | 2 +- .../Endpoints/Members/UpdateMemberEndpoint.cs | 2 +- .../Endpoints/Reviews/CreateReviewEndpoint.cs | 12 +- .../Endpoints/Reviews/DeleteReviewEndpoint.cs | 4 +- .../MappingProfiles/DtoToEntityMappings.cs | 10 +- .../MappingProfiles/EntityToDtoMappings.cs | 18 +- BookHive/Models/Author.cs | 4 +- BookHive/Models/Book.cs | 2 +- BookHive/Models/Loan.cs | 6 +- BookHive/Models/Member.cs | 4 +- BookHive/Models/Review.cs | 8 +- .../Authors/CreateAuthorDtoValidator.cs | 8 +- .../Authors/GetAuthorDtoValidator.cs | 2 +- .../Authors/UpdateAuthorDtoValidator.cs | 10 +- .../Books/CreateBookDtoValidator.cs | 12 +- .../Validators/Books/GetBookDtoValidator.cs | 4 +- .../Books/UpdateBookDtoValidator.cs | 14 +- BookHive/Validators/CustomValidators.cs | 1 + .../Loans/CreateLoanDtoValidator.cs | 8 +- .../Loans/UpdateLoanDtoValidator.cs | 8 +- .../Members/CreateMemberDtoValidator.cs | 6 +- .../Members/UpdateMemberDtoValidator.cs | 8 +- .../Reviews/CreateReviewDtoValidator.cs | 4 +- .../Reviews/UpdateReviewDtoValidator.cs | 6 +- .../obj/BookHive.csproj.nuget.dgspec.json | 23 ++- BookHive/obj/BookHive.csproj.nuget.g.props | 15 +- BookHive/obj/BookHive.csproj.nuget.g.targets | 8 +- .../Debug/net10.0/BookHive.AssemblyInfo.cs | 2 +- .../net10.0/BookHive.AssemblyInfoInputs.cache | 2 +- ....GeneratedMSBuildEditorConfig.editorconfig | 4 +- .../obj/Debug/net10.0/BookHive.assets.cache | Bin 71011 -> 67521 bytes .../BookHive.csproj.AssemblyReference.cache | Bin 25465 -> 25405 bytes BookHive/obj/project.assets.json | 36 +++- BookHive/obj/project.nuget.cache | 173 ++++++++++-------- BookHive/obj/project.packagespec.json | 2 +- BookHive/obj/rider.project.model.nuget.info | 2 +- BookHive/obj/rider.project.restore.info | 2 +- 55 files changed, 306 insertions(+), 264 deletions(-) diff --git a/.idea/.idea.BookHive/.idea/workspace.xml b/.idea/.idea.BookHive/.idea/workspace.xml index 5844fd1..1ce5d21 100644 --- a/.idea/.idea.BookHive/.idea/workspace.xml +++ b/.idea/.idea.BookHive/.idea/workspace.xml @@ -7,21 +7,21 @@ - - - - - - - + + + + - - - - - - + + + + + + + + + - { + "keyToString": { + ".NET Launch Settings Profile.BookHive: http.executor": "Run", + "ModuleVcsDetector.initialDetectionPerformed": "true", + "RunOnceActivity.ShowReadmeOnStart": "true", + "RunOnceActivity.TerminalTabsStorage.copyFrom.TerminalArrangementManager.252": "true", + "RunOnceActivity.git.unshallow": "true", + "RunOnceActivity.typescript.service.memoryLimit.init": "true", + "git-widget-placeholder": "master", + "vue.rearranger.settings.migration": "true" } -}]]> +}