├── src ├── corePackages │ ├── Core.Application │ │ ├── Dtos │ │ │ └── IDto.cs │ │ ├── Responses │ │ │ ├── IResponse.cs │ │ │ └── GetListResponse.cs │ │ ├── Rules │ │ │ └── BaseBusinessRules.cs │ │ ├── Pipelines │ │ │ ├── Logging │ │ │ │ └── ILoggableRequest.cs │ │ │ ├── Transaction │ │ │ │ └── ITransactionalRequest.cs │ │ │ ├── Caching │ │ │ │ ├── CacheSettings.cs │ │ │ │ ├── ICacheRemoverRequest.cs │ │ │ │ └── ICachableRequest.cs │ │ │ ├── Performance │ │ │ │ └── IIntervalRequest.cs │ │ │ └── Authorization │ │ │ │ └── ISecuredRequest.cs │ │ └── Requests │ │ │ └── PageRequest.cs │ ├── docs │ │ └── n-architecture-logo.png │ ├── Core.Persistence │ │ ├── Repositories │ │ │ ├── IQuery.cs │ │ │ └── IEntityTimestamps.cs │ │ ├── Paging │ │ │ ├── IPaginate.cs │ │ │ └── BasePageableModel.cs │ │ └── Dynamic │ │ │ ├── DynamicQuery.cs │ │ │ └── Sort.cs │ ├── Core.Mailing │ │ ├── IMailService.cs │ │ └── ToEmail.cs │ ├── Core.Security │ │ ├── Enums │ │ │ └── AuthenticatorType.cs │ │ ├── Constants │ │ │ └── GeneralOperationClaims.cs │ │ ├── EmailAuthenticator │ │ │ └── IEmailAuthenticatorHelper.cs │ │ ├── JWT │ │ │ ├── ITokenHelper.cs │ │ │ └── AccessToken.cs │ │ ├── OtpAuthenticator │ │ │ └── IOtpAuthenticatorHelper.cs │ │ └── Encryption │ │ │ ├── SecurityKeyHelper.cs │ │ │ └── SigningCredentialsHelper.cs │ ├── .csharpierrc │ ├── Core.ElasticSearch │ │ └── Models │ │ │ └── IElasticSearchResult.cs │ ├── Core.CrossCuttingConcerns │ │ ├── Logging │ │ │ └── Serilog │ │ │ │ ├── ConfigurationModels │ │ │ │ ├── GraylogConfiguration.cs │ │ │ │ └── ElasticSearchConfiguration.cs │ │ │ │ └── Messages │ │ │ │ └── SerilogMessages.cs │ │ └── Exceptions │ │ │ └── Extensions │ │ │ ├── ExceptionMiddlewareExtensions.cs │ │ │ └── ProblemDetailsExtensions.cs │ ├── Core.Test │ │ └── Application │ │ │ ├── Constants │ │ │ └── ValidationErrorCodes.cs │ │ │ └── FakeData │ │ │ └── BaseFakeData.cs │ └── .config │ │ └── dotnet-tools.json └── tobetoPlatformCleanArchitecture │ ├── Application │ ├── Features │ │ ├── Cities │ │ │ ├── Constants │ │ │ │ └── CitiesBusinessMessages.cs │ │ │ ├── Commands │ │ │ │ ├── Delete │ │ │ │ │ ├── DeletedCityResponse.cs │ │ │ │ │ └── DeletedCityCommandValidator.cs │ │ │ │ ├── Create │ │ │ │ │ └── CreatedCityResponse.cs │ │ │ │ └── Update │ │ │ │ │ └── UpdatedCityResponse.cs │ │ │ └── Queries │ │ │ │ ├── GetList │ │ │ │ └── GetListCityListItemDto.cs │ │ │ │ └── GetById │ │ │ │ └── GetByIdCityResponse.cs │ │ ├── Images │ │ │ ├── Constants │ │ │ │ └── ImagesBusinessMessages.cs │ │ │ ├── Commands │ │ │ │ ├── Delete │ │ │ │ │ ├── DeletedImageResponse.cs │ │ │ │ │ └── DeletedImageCommandValidator.cs │ │ │ │ ├── Create │ │ │ │ │ └── CreatedImageResponse.cs │ │ │ │ └── Update │ │ │ │ │ └── UpdatedImageResponse.cs │ │ │ └── Queries │ │ │ │ ├── GetList │ │ │ │ └── GetListImageListItemDto.cs │ │ │ │ └── GetById │ │ │ │ └── GetByIdImageResponse.cs │ │ ├── Answers │ │ │ ├── Constants │ │ │ │ └── AnswersBusinessMessages.cs │ │ │ ├── Commands │ │ │ │ ├── Delete │ │ │ │ │ ├── DeletedAnswerResponse.cs │ │ │ │ │ └── DeletedAnswerCommandValidator.cs │ │ │ │ ├── Create │ │ │ │ │ └── CreatedAnswerResponse.cs │ │ │ │ └── Update │ │ │ │ │ └── UpdatedAnswerResponse.cs │ │ │ └── Queries │ │ │ │ ├── GetList │ │ │ │ └── GetListAnswerListItemDto.cs │ │ │ │ └── GetById │ │ │ │ └── GetByIdAnswerResponse.cs │ │ ├── Courses │ │ │ ├── Constants │ │ │ │ └── CoursesBusinessMessages.cs │ │ │ └── Commands │ │ │ │ └── Delete │ │ │ │ ├── DeletedCourseResponse.cs │ │ │ │ └── DeletedCourseCommandValidator.cs │ │ ├── Exams │ │ │ ├── Constants │ │ │ │ └── ExamsBusinessMessages.cs │ │ │ └── Commands │ │ │ │ └── Delete │ │ │ │ ├── DeletedExamResponse.cs │ │ │ │ └── DeletedExamCommandValidator.cs │ │ ├── Lessons │ │ │ ├── Constants │ │ │ │ └── LessonsBusinessMessages.cs │ │ │ └── Commands │ │ │ │ └── Delete │ │ │ │ ├── DeletedLessonResponse.cs │ │ │ │ └── DeletedLessonCommandValidator.cs │ │ ├── Surveys │ │ │ ├── Constants │ │ │ │ └── SurveysBusinessMessages.cs │ │ │ └── Commands │ │ │ │ └── Delete │ │ │ │ ├── DeletedSurveyResponse.cs │ │ │ │ └── DeletedSurveyCommandValidator.cs │ │ ├── Addresses │ │ │ ├── Constants │ │ │ │ └── AddressesBusinessMessages.cs │ │ │ └── Commands │ │ │ │ └── Delete │ │ │ │ ├── DeletedAddressResponse.cs │ │ │ │ └── DeletedAddressCommandValidator.cs │ │ ├── Colleges │ │ │ ├── Constants │ │ │ │ └── CollegesBusinessMessages.cs │ │ │ ├── Commands │ │ │ │ ├── Delete │ │ │ │ │ ├── DeletedCollegeResponse.cs │ │ │ │ │ └── DeletedCollegeCommandValidator.cs │ │ │ │ ├── Create │ │ │ │ │ └── CreatedCollegeResponse.cs │ │ │ │ └── Update │ │ │ │ │ └── UpdatedCollegeResponse.cs │ │ │ └── Queries │ │ │ │ ├── GetList │ │ │ │ └── GetListCollegeListItemDto.cs │ │ │ │ └── GetById │ │ │ │ └── GetByIdCollegeResponse.cs │ │ ├── Countries │ │ │ ├── Constants │ │ │ │ └── CountriesBusinessMessages.cs │ │ │ ├── Commands │ │ │ │ ├── Delete │ │ │ │ │ ├── DeletedCountryResponse.cs │ │ │ │ │ └── DeletedCountryCommandValidator.cs │ │ │ │ ├── Create │ │ │ │ │ └── CreatedCountryResponse.cs │ │ │ │ └── Update │ │ │ │ │ └── UpdatedCountryResponse.cs │ │ │ └── Queries │ │ │ │ ├── GetList │ │ │ │ └── GetListCountryListItemDto.cs │ │ │ │ └── GetById │ │ │ │ └── GetByIdCountryResponse.cs │ │ ├── Contracts │ │ │ ├── Constants │ │ │ │ └── ContractsBusinessMessages.cs │ │ │ ├── Commands │ │ │ │ ├── Delete │ │ │ │ │ ├── DeletedContractResponse.cs │ │ │ │ │ └── DeletedContractCommandValidator.cs │ │ │ │ ├── Create │ │ │ │ │ └── CreatedContractResponse.cs │ │ │ │ └── Update │ │ │ │ │ └── UpdatedContractResponse.cs │ │ │ └── Queries │ │ │ │ ├── GetList │ │ │ │ └── GetListContractListItemDto.cs │ │ │ │ └── GetById │ │ │ │ └── GetByIdContractResponse.cs │ │ ├── Districts │ │ │ ├── Constants │ │ │ │ └── DistrictsBusinessMessages.cs │ │ │ ├── Commands │ │ │ │ ├── Delete │ │ │ │ │ ├── DeletedDistrictResponse.cs │ │ │ │ │ └── DeletedDistrictCommandValidator.cs │ │ │ │ ├── Create │ │ │ │ │ └── CreatedDistrictResponse.cs │ │ │ │ └── Update │ │ │ │ │ └── UpdatedDistrictResponse.cs │ │ │ └── Queries │ │ │ │ ├── GetList │ │ │ │ └── GetListDistrictListItemDto.cs │ │ │ │ └── GetById │ │ │ │ └── GetByIdDistrictResponse.cs │ │ ├── Questions │ │ │ ├── Constants │ │ │ │ └── QuestionsBusinessMessages.cs │ │ │ ├── Commands │ │ │ │ ├── Delete │ │ │ │ │ ├── DeletedQuestionResponse.cs │ │ │ │ │ └── DeletedQuestionCommandValidator.cs │ │ │ │ ├── Create │ │ │ │ │ └── CreatedQuestionResponse.cs │ │ │ │ └── Update │ │ │ │ │ └── UpdatedQuestionResponse.cs │ │ │ └── Queries │ │ │ │ ├── GetList │ │ │ │ └── GetListQuestionListItemDto.cs │ │ │ │ └── GetById │ │ │ │ └── GetByIdQuestionResponse.cs │ │ ├── Recourses │ │ │ ├── Constants │ │ │ │ └── RecoursesBusinessMessages.cs │ │ │ └── Commands │ │ │ │ └── Delete │ │ │ │ ├── DeletedRecourseResponse.cs │ │ │ │ └── DeletedRecourseCommandValidator.cs │ │ ├── Classrooms │ │ │ ├── Constants │ │ │ │ └── ClassroomsBusinessMessages.cs │ │ │ ├── Commands │ │ │ │ ├── Delete │ │ │ │ │ ├── DeletedClassroomResponse.cs │ │ │ │ │ └── DeletedClassroomCommandValidator.cs │ │ │ │ ├── Create │ │ │ │ │ └── CreatedClassroomResponse.cs │ │ │ │ └── Update │ │ │ │ │ └── UpdatedClassroomResponse.cs │ │ │ └── Queries │ │ │ │ ├── GetList │ │ │ │ └── GetListClassroomListItemDto.cs │ │ │ │ └── GetById │ │ │ │ └── GetByIdClassroomResponse.cs │ │ ├── Experiences │ │ │ ├── Constants │ │ │ │ └── ExperiencesBusinessMessages.cs │ │ │ └── Commands │ │ │ │ └── Delete │ │ │ │ ├── DeletedExperienceResponse.cs │ │ │ │ └── DeletedExperienceCommandValidator.cs │ │ ├── SurveyTypes │ │ │ ├── Constants │ │ │ │ └── SurveyTypesBusinessMessages.cs │ │ │ ├── Commands │ │ │ │ ├── Delete │ │ │ │ │ ├── DeletedSurveyTypeResponse.cs │ │ │ │ │ └── DeletedSurveyTypeCommandValidator.cs │ │ │ │ ├── Create │ │ │ │ │ └── CreatedSurveyTypeResponse.cs │ │ │ │ └── Update │ │ │ │ │ └── UpdatedSurveyTypeResponse.cs │ │ │ └── Queries │ │ │ │ ├── GetList │ │ │ │ └── GetListSurveyTypeListItemDto.cs │ │ │ │ └── GetById │ │ │ │ └── GetByIdSurveyTypeResponse.cs │ │ ├── Users │ │ │ └── Commands │ │ │ │ └── Delete │ │ │ │ └── DeletedUserResponse.cs │ │ ├── Accounts │ │ │ ├── Commands │ │ │ │ └── Delete │ │ │ │ │ ├── DeletedAccountResponse.cs │ │ │ │ │ └── DeletedAccountCommandValidator.cs │ │ │ └── Constants │ │ │ │ └── AccountsBusinessRuleConstants.cs │ │ ├── Capabilities │ │ │ ├── Constants │ │ │ │ └── CapabilitiesBusinessMessages.cs │ │ │ ├── Commands │ │ │ │ ├── Delete │ │ │ │ │ ├── DeletedCapabilityResponse.cs │ │ │ │ │ └── DeletedCapabilityCommandValidator.cs │ │ │ │ ├── Create │ │ │ │ │ └── CreatedCapabilityResponse.cs │ │ │ │ └── Update │ │ │ │ │ └── UpdatedCapabilityResponse.cs │ │ │ └── Queries │ │ │ │ ├── GetList │ │ │ │ └── GetListCapabilityListItemDto.cs │ │ │ │ └── GetById │ │ │ │ └── GetByIdCapabilityResponse.cs │ │ ├── Certificates │ │ │ ├── Constants │ │ │ │ └── CertificatesBusinessMessages.cs │ │ │ ├── Commands │ │ │ │ ├── Delete │ │ │ │ │ ├── DeletedCertificateResponse.cs │ │ │ │ │ └── DeletedCertificateCommandValidator.cs │ │ │ │ ├── Create │ │ │ │ │ └── CreatedCertificateResponse.cs │ │ │ │ └── Update │ │ │ │ │ └── UpdatedCertificateResponse.cs │ │ │ └── Queries │ │ │ │ ├── GetList │ │ │ │ └── GetListCertificateListItemDto.cs │ │ │ │ └── GetById │ │ │ │ └── GetByIdCertificateResponse.cs │ │ ├── Auth │ │ │ ├── Constants │ │ │ │ ├── AuthOperationClaims.cs │ │ │ │ └── AddressConstants.cs │ │ │ └── Profiles │ │ │ │ └── MappingProfiles.cs │ │ ├── ExamQuestions │ │ │ ├── Constants │ │ │ │ ├── ExamQuestionsBusinessMessages.cs │ │ │ │ └── ExamQuestionBusinessRuleConstants.cs │ │ │ ├── Commands │ │ │ │ ├── Delete │ │ │ │ │ ├── DeletedExamQuestionResponse.cs │ │ │ │ │ └── DeletedExamQuestionCommandValidator.cs │ │ │ │ ├── Create │ │ │ │ │ └── CreatedExamQuestionResponse.cs │ │ │ │ └── Update │ │ │ │ │ └── UpdatedExamQuestionResponse.cs │ │ │ └── Queries │ │ │ │ ├── GetList │ │ │ │ └── GetListExamQuestionListItemDto.cs │ │ │ │ └── GetById │ │ │ │ └── GetByIdExamQuestionResponse.cs │ │ ├── LearningPaths │ │ │ ├── Constants │ │ │ │ └── LearningPathsBusinessMessages.cs │ │ │ └── Commands │ │ │ │ └── Delete │ │ │ │ ├── DeletedLearningPathResponse.cs │ │ │ │ └── DeletedLearningPathCommandValidator.cs │ │ ├── Announcements │ │ │ ├── Constants │ │ │ │ └── AnnouncementsBusinessMessages.cs │ │ │ └── Commands │ │ │ │ └── Delete │ │ │ │ ├── DeletedAnnouncementResponse.cs │ │ │ │ └── DeletedAnnouncementCommandValidator.cs │ │ ├── ContractTypes │ │ │ ├── Constants │ │ │ │ └── ContractTypesBusinessMessages.cs │ │ │ ├── Commands │ │ │ │ ├── Delete │ │ │ │ │ ├── DeletedContractTypeResponse.cs │ │ │ │ │ └── DeletedContractTypeCommandValidator.cs │ │ │ │ ├── Create │ │ │ │ │ └── CreatedContractTypeResponse.cs │ │ │ │ └── Update │ │ │ │ │ └── UpdatedContractTypeResponse.cs │ │ │ └── Queries │ │ │ │ ├── GetList │ │ │ │ └── GetListContractTypeListItemDto.cs │ │ │ │ └── GetById │ │ │ │ └── GetByIdContractTypeResponse.cs │ │ ├── Organizations │ │ │ ├── Constants │ │ │ │ └── OrganizationsBusinessMessages.cs │ │ │ └── Commands │ │ │ │ └── Delete │ │ │ │ ├── DeletedOrganizationResponse.cs │ │ │ │ └── DeletedOrganizationCommandValidator.cs │ │ ├── RecourseSteps │ │ │ ├── Constants │ │ │ │ └── RecourseStepsBusinessMessages.cs │ │ │ ├── Commands │ │ │ │ ├── Delete │ │ │ │ │ ├── DeletedRecourseStepResponse.cs │ │ │ │ │ └── DeletedRecourseStepCommandValidator.cs │ │ │ │ ├── Create │ │ │ │ │ └── CreatedRecourseStepResponse.cs │ │ │ │ └── Update │ │ │ │ │ └── UpdatedRecourseStepResponse.cs │ │ │ └── Queries │ │ │ │ ├── GetList │ │ │ │ └── GetListRecourseStepListItemDto.cs │ │ │ │ └── GetById │ │ │ │ └── GetByIdRecourseStepResponse.cs │ │ ├── AccountCourses │ │ │ ├── Constants │ │ │ │ └── AccountCoursesBusinessMessages.cs │ │ │ ├── Commands │ │ │ │ ├── Delete │ │ │ │ │ ├── DeletedAccountCourseResponse.cs │ │ │ │ │ └── DeletedAccountCourseCommandValidator.cs │ │ │ │ ├── Create │ │ │ │ │ └── CreatedAccountCourseResponse.cs │ │ │ │ └── Update │ │ │ │ │ └── UpdatedAccountCourseResponse.cs │ │ │ └── Queries │ │ │ │ ├── GetList │ │ │ │ └── GetListAccountCourseListItemDto.cs │ │ │ │ └── GetById │ │ │ │ └── GetByIdAccountCourseResponse.cs │ │ ├── AccountLessons │ │ │ ├── Constants │ │ │ │ └── AccountLessonsBusinessMessages.cs │ │ │ └── Commands │ │ │ │ └── Delete │ │ │ │ ├── DeletedAccountLessonResponse.cs │ │ │ │ └── DeletedAccountLessonCommandValidator.cs │ │ ├── ClassroomExams │ │ │ ├── Constants │ │ │ │ └── ClassroomExamsBusinessMessages.cs │ │ │ ├── Commands │ │ │ │ ├── Delete │ │ │ │ │ ├── DeletedClassroomExamResponse.cs │ │ │ │ │ └── DeletedClassroomExamCommandValidator.cs │ │ │ │ ├── Create │ │ │ │ │ └── CreatedClassroomExamResponse.cs │ │ │ │ └── Update │ │ │ │ │ └── UpdatedClassroomExamResponse.cs │ │ │ └── Queries │ │ │ │ ├── GetList │ │ │ │ └── GetListClassroomExamListItemDto.cs │ │ │ │ └── GetById │ │ │ │ └── GetByIdClassroomExamResponse.cs │ │ ├── ImageExtensions │ │ │ ├── Constants │ │ │ │ └── ImageExtensionsBusinessMessages.cs │ │ │ ├── Commands │ │ │ │ ├── Delete │ │ │ │ │ ├── DeletedImageExtensionResponse.cs │ │ │ │ │ └── DeletedImageExtensionCommandValidator.cs │ │ │ │ ├── Create │ │ │ │ │ └── CreatedImageExtensionResponse.cs │ │ │ │ └── Update │ │ │ │ │ └── UpdatedImageExtensionResponse.cs │ │ │ └── Queries │ │ │ │ ├── GetById │ │ │ │ └── GetByIdImageExtensionResponse.cs │ │ │ │ └── GetList │ │ │ │ └── GetListImageExtensionListItemDto.cs │ │ ├── RecourseDetails │ │ │ ├── Constants │ │ │ │ └── RecourseDetailsBusinessMessages.cs │ │ │ ├── Commands │ │ │ │ ├── Delete │ │ │ │ │ ├── DeletedRecourseDetailResponse.cs │ │ │ │ │ └── DeletedRecourseDetailCommandValidator.cs │ │ │ │ ├── Create │ │ │ │ │ └── CreatedRecourseDetailResponse.cs │ │ │ │ └── Update │ │ │ │ │ └── UpdatedRecourseDetailResponse.cs │ │ │ └── Queries │ │ │ │ ├── GetList │ │ │ │ └── GetListRecourseDetailListItemDto.cs │ │ │ │ └── GetById │ │ │ │ └── GetByIdRecourseDetailResponse.cs │ │ ├── AccountContracts │ │ │ ├── Constants │ │ │ │ └── AccountContractsBusinessMessages.cs │ │ │ ├── Commands │ │ │ │ ├── Delete │ │ │ │ │ ├── DeletedAccountContractResponse.cs │ │ │ │ │ └── DeletedAccountContractCommandValidator.cs │ │ │ │ ├── Create │ │ │ │ │ └── CreatedAccountContractResponse.cs │ │ │ │ └── Update │ │ │ │ │ └── UpdatedAccountContractResponse.cs │ │ │ └── Queries │ │ │ │ ├── GetList │ │ │ │ └── GetListAccountContractListItemDto.cs │ │ │ │ └── GetById │ │ │ │ └── GetByIdAccountContractResponse.cs │ │ ├── AccountRecourses │ │ │ ├── Constants │ │ │ │ └── AccountRecoursesBusinessMessages.cs │ │ │ ├── Commands │ │ │ │ ├── Delete │ │ │ │ │ ├── DeletedAccountRecourseResponse.cs │ │ │ │ │ └── DeletedAccountRecourseCommandValidator.cs │ │ │ │ ├── Create │ │ │ │ │ └── CreatedAccountRecourseResponse.cs │ │ │ │ └── Update │ │ │ │ │ └── UpdatedAccountRecourseResponse.cs │ │ │ └── Queries │ │ │ │ ├── GetList │ │ │ │ └── GetListAccountRecourseListItemDto.cs │ │ │ │ └── GetById │ │ │ │ └── GetByIdAccountRecourseResponse.cs │ │ ├── CourseCategories │ │ │ ├── Constants │ │ │ │ └── CourseCategoriesBusinessMessages.cs │ │ │ ├── Commands │ │ │ │ ├── Delete │ │ │ │ │ ├── DeletedCourseCategoryResponse.cs │ │ │ │ │ └── DeletedCourseCategoryCommandValidator.cs │ │ │ │ ├── Create │ │ │ │ │ └── CreatedCourseCategoryResponse.cs │ │ │ │ └── Update │ │ │ │ │ └── UpdatedCourseCategoryResponse.cs │ │ │ └── Queries │ │ │ │ ├── GetList │ │ │ │ └── GetListCourseCategoryListItemDto.cs │ │ │ │ └── GetById │ │ │ │ └── GetByIdCourseCategoryResponse.cs │ │ ├── ForeignLanguages │ │ │ ├── Constants │ │ │ │ └── ForeignLanguagesBusinessMessages.cs │ │ │ ├── Commands │ │ │ │ ├── Delete │ │ │ │ │ ├── DeletedForeignLanguageResponse.cs │ │ │ │ │ └── DeletedForeignLanguageCommandValidator.cs │ │ │ │ ├── Create │ │ │ │ │ └── CreatedForeignLanguageResponse.cs │ │ │ │ └── Update │ │ │ │ │ └── UpdatedForeignLanguageResponse.cs │ │ │ └── Queries │ │ │ │ ├── GetList │ │ │ │ └── GetListForeignLanguageListItemDto.cs │ │ │ │ └── GetById │ │ │ │ └── GetByIdForeignLanguageResponse.cs │ │ ├── AccountClassrooms │ │ │ ├── Commands │ │ │ │ ├── Delete │ │ │ │ │ ├── DeletedAccountClassroomResponse.cs │ │ │ │ │ └── DeletedAccountClassroomCommandValidator.cs │ │ │ │ ├── Create │ │ │ │ │ └── CreatedAccountClassroomResponse.cs │ │ │ │ └── Update │ │ │ │ │ └── UpdatedAccountClassroomResponse.cs │ │ │ ├── Constants │ │ │ │ └── AccountClassroomsBusinessMessages.cs │ │ │ └── Queries │ │ │ │ ├── GetList │ │ │ │ └── GetListAccountClassroomListItemDto.cs │ │ │ │ └── GetById │ │ │ │ └── GetByIdAccountClassroomResponse.cs │ │ ├── AnnouncementTypes │ │ │ ├── Commands │ │ │ │ ├── Delete │ │ │ │ │ ├── DeletedAnnouncementTypeResponse.cs │ │ │ │ │ └── DeletedAnnouncementTypeCommandValidator.cs │ │ │ │ ├── Create │ │ │ │ │ └── CreatedAnnouncementTypeResponse.cs │ │ │ │ └── Update │ │ │ │ │ └── UpdatedAnnouncementTypeResponse.cs │ │ │ ├── Constants │ │ │ │ └── AnnouncementTypesBusinessMessages.cs │ │ │ └── Queries │ │ │ │ ├── GetList │ │ │ │ └── GetListAnnouncementTypeListItemDto.cs │ │ │ │ └── GetById │ │ │ │ └── GetByIdAnnouncementTypeResponse.cs │ │ ├── EducationPrograms │ │ │ ├── Commands │ │ │ │ ├── Delete │ │ │ │ │ ├── DeletedEducationProgramResponse.cs │ │ │ │ │ └── DeletedEducationProgramCommandValidator.cs │ │ │ │ ├── Create │ │ │ │ │ └── CreatedEducationProgramResponse.cs │ │ │ │ └── Update │ │ │ │ │ └── UpdatedEducationProgramResponse.cs │ │ │ ├── Constants │ │ │ │ └── EducationProgramsBusinessMessages.cs │ │ │ └── Queries │ │ │ │ ├── GetList │ │ │ │ └── GetListEducationProgramListItemDto.cs │ │ │ │ └── GetById │ │ │ │ └── GetByIdEducationProgramResponse.cs │ │ ├── GraduationStatuses │ │ │ ├── Constants │ │ │ │ └── GraduationStatusesBusinessMessages.cs │ │ │ ├── Commands │ │ │ │ ├── Delete │ │ │ │ │ ├── DeletedGraduationStatusResponse.cs │ │ │ │ │ └── DeletedGraduationStatusCommandValidator.cs │ │ │ │ ├── Create │ │ │ │ │ └── CreatedGraduationStatusResponse.cs │ │ │ │ └── Update │ │ │ │ │ └── UpdatedGraduationStatusResponse.cs │ │ │ └── Queries │ │ │ │ ├── GetById │ │ │ │ └── GetByIdGraduationStatusResponse.cs │ │ │ │ └── GetList │ │ │ │ └── GetListGraduationStatusListItemDto.cs │ │ ├── OperationClaims │ │ │ ├── Commands │ │ │ │ ├── Delete │ │ │ │ │ └── DeletedOperationClaimResponse.cs │ │ │ │ ├── Create │ │ │ │ │ └── CreateOperationClaimCommandValidator.cs │ │ │ │ └── Update │ │ │ │ │ └── UpdateOperationClaimCommandValidator.cs │ │ │ └── Constants │ │ │ │ ├── GeneralOperationClaims.cs │ │ │ │ └── OperationClaimsMessages.cs │ │ ├── OrganizationTypes │ │ │ ├── Commands │ │ │ │ ├── Delete │ │ │ │ │ ├── DeletedOrganizationTypeResponse.cs │ │ │ │ │ └── DeletedOrganizationTypeCommandValidator.cs │ │ │ │ ├── Create │ │ │ │ │ └── CreatedOrganizationTypeResponse.cs │ │ │ │ └── Update │ │ │ │ │ └── UpdatedOrganizationTypeResponse.cs │ │ │ ├── Constants │ │ │ │ └── OrganizationTypesBusinessMessages.cs │ │ │ └── Queries │ │ │ │ ├── GetList │ │ │ │ └── GetListOrganizationTypeListItemDto.cs │ │ │ │ └── GetById │ │ │ │ └── GetByIdOrganizationTypeResponse.cs │ │ ├── QuestionCategories │ │ │ ├── Constants │ │ │ │ └── QuestionCategoriesBusinessMessages.cs │ │ │ ├── Commands │ │ │ │ ├── Delete │ │ │ │ │ ├── DeletedQuestionCategoryResponse.cs │ │ │ │ │ └── DeletedQuestionCategoryCommandValidator.cs │ │ │ │ ├── Create │ │ │ │ │ └── CreatedQuestionCategoryResponse.cs │ │ │ │ └── Update │ │ │ │ │ └── UpdatedQuestionCategoryResponse.cs │ │ │ └── Queries │ │ │ │ ├── GetList │ │ │ │ └── GetListQuestionCategoryListItemDto.cs │ │ │ │ └── GetById │ │ │ │ └── GetByIdQuestionCategoryResponse.cs │ │ ├── AccountCapabilities │ │ │ ├── Commands │ │ │ │ ├── Delete │ │ │ │ │ ├── DeletedAccountCapabilityResponse.cs │ │ │ │ │ └── DeletedAccountCapabilityCommandValidator.cs │ │ │ │ ├── Create │ │ │ │ │ └── CreatedAccountCapabilityResponse.cs │ │ │ │ └── Update │ │ │ │ │ └── UpdatedAccountCapabilityResponse.cs │ │ │ ├── Constants │ │ │ │ └── AccountCapabilitiesBusinessMessages.cs │ │ │ └── Queries │ │ │ │ ├── GetList │ │ │ │ └── GetListAccountCapabilityListItemDto.cs │ │ │ │ └── GetById │ │ │ │ └── GetByIdAccountCapabilityResponse.cs │ │ ├── AccountExamResults │ │ │ ├── Commands │ │ │ │ └── Delete │ │ │ │ │ ├── DeletedAccountExamResultResponse.cs │ │ │ │ │ └── DeletedAccountExamResultCommandValidator.cs │ │ │ └── Constants │ │ │ │ └── AccountExamResultsBusinessMessages.cs │ │ ├── AccountCertificates │ │ │ ├── Commands │ │ │ │ ├── Delete │ │ │ │ │ ├── DeletedAccountCertificateResponse.cs │ │ │ │ │ └── DeletedAccountCertificateCommandValidator.cs │ │ │ │ ├── Create │ │ │ │ │ └── CreatedAccountCertificateResponse.cs │ │ │ │ └── Update │ │ │ │ │ └── UpdatedAccountCertificateResponse.cs │ │ │ ├── Constants │ │ │ │ └── AccountCertificatesBusinessMessages.cs │ │ │ └── Queries │ │ │ │ ├── GetById │ │ │ │ └── GetByIdAccountCertificateResponse.cs │ │ │ │ └── GetList │ │ │ │ └── GetListAccountCertificateListItemDto.cs │ │ ├── AccountCollegeMetadatas │ │ │ ├── Constants │ │ │ │ └── AccountCollegeMetadatasBusinessMessages.cs │ │ │ └── Commands │ │ │ │ └── Delete │ │ │ │ └── DeletedAccountCollegeMetadataResponse.cs │ │ ├── CourseLearningPaths │ │ │ ├── Commands │ │ │ │ ├── Delete │ │ │ │ │ ├── DeletedCourseLearningPathResponse.cs │ │ │ │ │ └── DeletedCourseLearningPathCommandValidator.cs │ │ │ │ ├── Create │ │ │ │ │ └── CreatedCourseLearningPathResponse.cs │ │ │ │ └── Update │ │ │ │ │ └── UpdatedCourseLearningPathResponse.cs │ │ │ ├── Constants │ │ │ │ └── CourseLearningPathsBusinessMessages.cs │ │ │ └── Queries │ │ │ │ └── GetById │ │ │ │ └── GetByIdCourseLearningPathResponse.cs │ │ ├── RecourseDetailSteps │ │ │ ├── Commands │ │ │ │ ├── Delete │ │ │ │ │ ├── DeletedRecourseDetailStepResponse.cs │ │ │ │ │ └── DeletedRecourseDetailStepCommandValidator.cs │ │ │ │ ├── Create │ │ │ │ │ └── CreatedRecourseDetailStepResponse.cs │ │ │ │ └── Update │ │ │ │ │ └── UpdatedRecourseDetailStepResponse.cs │ │ │ ├── Constants │ │ │ │ └── RecourseDetailStepsBusinessMessages.cs │ │ │ └── Queries │ │ │ │ ├── GetList │ │ │ │ └── GetListRecourseDetailStepListItemDto.cs │ │ │ │ └── GetById │ │ │ │ └── GetByIdRecourseDetailStepResponse.cs │ │ ├── AccountAnnouncements │ │ │ ├── Commands │ │ │ │ ├── Delete │ │ │ │ │ ├── DeletedAccountAnnouncementResponse.cs │ │ │ │ │ └── DeletedAccountAnnouncementCommandValidator.cs │ │ │ │ ├── Create │ │ │ │ │ └── CreatedAccountAnnouncementResponse.cs │ │ │ │ └── Update │ │ │ │ │ └── UpdatedAccountAnnouncementResponse.cs │ │ │ ├── Constants │ │ │ │ └── AccountAnnouncementsBusinessMessages.cs │ │ │ └── Queries │ │ │ │ ├── GetList │ │ │ │ └── GetListAccountAnnouncementListItemDto.cs │ │ │ │ └── GetById │ │ │ │ └── GetByIdAccountAnnouncementResponse.cs │ │ ├── AccountLearningPaths │ │ │ ├── Commands │ │ │ │ └── Delete │ │ │ │ │ ├── DeletedAccountLearningPathResponse.cs │ │ │ │ │ └── DeletedAccountLearningPathCommandValidator.cs │ │ │ └── Constants │ │ │ │ └── AccountLearningPathsBusinessMessages.cs │ │ ├── ForeignLanguageLevels │ │ │ ├── Commands │ │ │ │ ├── Delete │ │ │ │ │ └── DeletedForeignLanguageLevelResponse.cs │ │ │ │ └── Create │ │ │ │ │ └── CreatedForeignLanguageLevelResponse.cs │ │ │ ├── Constants │ │ │ │ └── ForeignLanguageLevelsBusinessMessages.cs │ │ │ └── Queries │ │ │ │ └── GetList │ │ │ │ └── GetListForeignLanguageLevelListItemDto.cs │ │ ├── SocialMediaPlatforms │ │ │ ├── Commands │ │ │ │ └── Delete │ │ │ │ │ └── DeletedSocialMediaPlatformResponse.cs │ │ │ └── Constants │ │ │ │ └── SocialMediaPlatformsBusinessMessages.cs │ │ ├── UserOperationClaims │ │ │ ├── Commands │ │ │ │ ├── Delete │ │ │ │ │ └── DeletedUserOperationClaimResponse.cs │ │ │ │ ├── Create │ │ │ │ │ └── CreatedUserOperationClaimResponse.cs │ │ │ │ └── Update │ │ │ │ │ └── UpdatedUserOperationClaimResponse.cs │ │ │ ├── Constants │ │ │ │ └── UserOperationClaimsMessages.cs │ │ │ └── Queries │ │ │ │ ├── GetList │ │ │ │ └── GetListUserOperationClaimListItemDto.cs │ │ │ │ └── GetById │ │ │ │ └── GetByIdUserOperationClaimResponse.cs │ │ ├── AccountRecourseDetails │ │ │ ├── Commands │ │ │ │ └── Delete │ │ │ │ │ └── DeletedAccountRecourseDetailResponse.cs │ │ │ └── Constants │ │ │ │ └── AccountRecourseDetailsBusinessMessages.cs │ │ ├── LearningPathCategories │ │ │ ├── Commands │ │ │ │ ├── Delete │ │ │ │ │ └── DeletedLearningPathCategoryResponse.cs │ │ │ │ ├── Create │ │ │ │ │ └── CreatedLearningPathCategoryResponse.cs │ │ │ │ └── Update │ │ │ │ │ └── UpdatedLearningPathCategoryResponse.cs │ │ │ ├── Constants │ │ │ │ └── LearningPathCategoriesBusinessMessages.cs │ │ │ └── Queries │ │ │ │ ├── GetList │ │ │ │ └── GetListLearningPathCategoryListItemDto.cs │ │ │ │ └── GetById │ │ │ │ └── GetByIdLearningPathCategoryResponse.cs │ │ ├── AccountForeignLanguageMetadatas │ │ │ ├── Constants │ │ │ │ └── AccountForeignLanguageMetadatasBusinessMessages.cs │ │ │ └── Commands │ │ │ │ └── Delete │ │ │ │ └── DeletedAccountForeignLanguageMetadataResponse.cs │ │ └── AccountSocialMediaPlatforms │ │ │ ├── Commands │ │ │ └── Delete │ │ │ │ └── DeletedAccountSocialMediaPlatformResponse.cs │ │ │ └── Constants │ │ │ └── AccountSocialMediaPlatformsBusinessRuleConstants.cs │ └── Services │ │ └── Repositories │ │ ├── ICityRepository.cs │ │ ├── IExamRepository.cs │ │ ├── IImageRepository.cs │ │ ├── IUserRepository.cs │ │ ├── IAnswerRepository.cs │ │ ├── ICourseRepository.cs │ │ ├── ILessonRepository.cs │ │ ├── ISurveyRepository.cs │ │ ├── IAccountRepository.cs │ │ ├── IAddressRepository.cs │ │ ├── ICollegeRepository.cs │ │ ├── ICountryRepository.cs │ │ ├── IClassroomRepository.cs │ │ ├── IContractRepository.cs │ │ ├── IDistrictRepository.cs │ │ ├── IQuestionRepository.cs │ │ ├── IRecourseRepository.cs │ │ ├── ICapabilityRepository.cs │ │ ├── IExperienceRepository.cs │ │ ├── ISurveyTypeRepository.cs │ │ ├── ICertificateRepository.cs │ │ ├── IAnnouncementRepository.cs │ │ ├── IContractTypeRepository.cs │ │ ├── IExamQuestionRepository.cs │ │ ├── ILearningPathRepository.cs │ │ ├── IOrganizationRepository.cs │ │ ├── IRecourseStepRepository.cs │ │ ├── IAccountCourseRepository.cs │ │ ├── IAccountLessonRepository.cs │ │ ├── IClassroomExamRepository.cs │ │ ├── ICourseCategoryRepository.cs │ │ ├── IImageExtensionRepository.cs │ │ ├── IRecourseDetailRepository.cs │ │ ├── IRefreshTokenRepository.cs │ │ ├── IAccountContractRepository.cs │ │ ├── IAccountRecourseRepository.cs │ │ ├── IForeignLanguageRepository.cs │ │ ├── IOperationClaimRepository.cs │ │ ├── IAccountClassroomRepository.cs │ │ ├── IAnnouncementTypeRepository.cs │ │ ├── IEducationProgramRepository.cs │ │ ├── IGraduationStatusRepository.cs │ │ ├── IOrganizationTypeRepository.cs │ │ ├── IQuestionCategoryRepository.cs │ │ ├── IAccountCapabilityRepository.cs │ │ ├── IAccountExamResultRepository.cs │ │ ├── IOtpAuthenticatorRepository.cs │ │ ├── IAccountAnnouncementRepository.cs │ │ ├── IAccountCertificateRepository.cs │ │ ├── IAccountLearningPathRepository.cs │ │ ├── ICourseLearningPathRepository.cs │ │ ├── IEmailAuthenticatorRepository.cs │ │ ├── IRecourseDetailStepRepository.cs │ │ ├── ISocialMediaPlatformRepository.cs │ │ ├── IUserOperationClaimRepository.cs │ │ ├── IForeignLanguageLevelRepository.cs │ │ ├── ILearningPathCategoryRepository.cs │ │ ├── IAccountRecourseDetailRepository.cs │ │ ├── IAccountCollegeMetadataRepository.cs │ │ ├── IAccountSocialMediaPlatformRepository.cs │ │ └── IAccountForeignLanguageMetadataRepository.cs │ └── Persistence │ └── Repositories │ ├── CityRepository.cs │ ├── ExamRepository.cs │ ├── ImageRepository.cs │ ├── AnswerRepository.cs │ ├── CourseRepository.cs │ ├── LessonRepository.cs │ ├── SurveyRepository.cs │ ├── UserRepository.cs │ ├── AccountRepository.cs │ ├── AddressRepository.cs │ ├── CollegeRepository.cs │ ├── CountryRepository.cs │ ├── ContractRepository.cs │ ├── DistrictRepository.cs │ ├── QuestionRepository.cs │ └── RecourseRepository.cs ├── .gitmodules ├── .csharpierrc ├── tests └── Application.Tests │ └── Startup.cs └── .config └── dotnet-tools.json /src/corePackages/Core.Application/Dtos/IDto.cs: -------------------------------------------------------------------------------- 1 | namespace Core.Application.Dtos; 2 | 3 | public interface IDto { } 4 | -------------------------------------------------------------------------------- /src/corePackages/Core.Application/Responses/IResponse.cs: -------------------------------------------------------------------------------- 1 | namespace Core.Application.Responses; 2 | 3 | public interface IResponse { } 4 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "src/corePackages"] 2 | path = src/corePackages 3 | url = https://github.com/kodlamaio-projects/nArchitecture.Core 4 | -------------------------------------------------------------------------------- /src/corePackages/Core.Application/Rules/BaseBusinessRules.cs: -------------------------------------------------------------------------------- 1 | namespace Core.Application.Rules; 2 | 3 | public abstract class BaseBusinessRules { } 4 | -------------------------------------------------------------------------------- /src/corePackages/Core.Application/Pipelines/Logging/ILoggableRequest.cs: -------------------------------------------------------------------------------- 1 | namespace Core.Application.Pipelines.Logging; 2 | 3 | public interface ILoggableRequest { } 4 | -------------------------------------------------------------------------------- /src/corePackages/docs/n-architecture-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DotNetReactFullStack/TobetoPlatformCleanArchitecture/HEAD/src/corePackages/docs/n-architecture-logo.png -------------------------------------------------------------------------------- /src/corePackages/Core.Persistence/Repositories/IQuery.cs: -------------------------------------------------------------------------------- 1 | namespace Core.Persistence.Repositories; 2 | 3 | public interface IQuery 4 | { 5 | IQueryable Query(); 6 | } 7 | -------------------------------------------------------------------------------- /src/corePackages/Core.Application/Pipelines/Transaction/ITransactionalRequest.cs: -------------------------------------------------------------------------------- 1 | namespace Core.Application.Pipelines.Transaction; 2 | 3 | public interface ITransactionalRequest { } 4 | -------------------------------------------------------------------------------- /src/corePackages/Core.Mailing/IMailService.cs: -------------------------------------------------------------------------------- 1 | namespace Core.Mailing; 2 | 3 | public interface IMailService 4 | { 5 | void SendMail(Mail mail); 6 | Task SendEmailAsync(Mail mail); 7 | } 8 | -------------------------------------------------------------------------------- /src/corePackages/Core.Security/Enums/AuthenticatorType.cs: -------------------------------------------------------------------------------- 1 | namespace Core.Security.Enums; 2 | 3 | public enum AuthenticatorType 4 | { 5 | None = 0, 6 | Email = 1, 7 | Otp = 2 8 | } 9 | -------------------------------------------------------------------------------- /.csharpierrc: -------------------------------------------------------------------------------- 1 | { 2 | "printWidth": 140, 3 | "useTabs": false, 4 | "tabWidth": 4, 5 | "preprocessorSymbolSets": [ 6 | "", 7 | "DEBUG", 8 | "DEBUG,CODE_STYLE" 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /src/corePackages/Core.Application/Pipelines/Caching/CacheSettings.cs: -------------------------------------------------------------------------------- 1 | namespace Core.Application.Pipelines.Caching; 2 | 3 | public class CacheSettings 4 | { 5 | public int SlidingExpiration { get; set; } 6 | } 7 | -------------------------------------------------------------------------------- /src/corePackages/Core.Security/Constants/GeneralOperationClaims.cs: -------------------------------------------------------------------------------- 1 | namespace Core.Security.Constants; 2 | 3 | public static class GeneralOperationClaims 4 | { 5 | public const string Admin = "Admin"; 6 | } 7 | -------------------------------------------------------------------------------- /src/corePackages/.csharpierrc: -------------------------------------------------------------------------------- 1 | { 2 | "printWidth": 140, 3 | "useTabs": false, 4 | "tabWidth": 4, 5 | "preprocessorSymbolSets": [ 6 | "", 7 | "DEBUG", 8 | "DEBUG,CODE_STYLE" 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /src/corePackages/Core.Application/Pipelines/Performance/IIntervalRequest.cs: -------------------------------------------------------------------------------- 1 | namespace Core.Application.Pipelines.Performance; 2 | 3 | public interface IIntervalRequest 4 | { 5 | public int Interval { get; } 6 | } 7 | -------------------------------------------------------------------------------- /src/corePackages/Core.Application/Pipelines/Authorization/ISecuredRequest.cs: -------------------------------------------------------------------------------- 1 | namespace Core.Application.Pipelines.Authorization; 2 | 3 | public interface ISecuredRequest 4 | { 5 | public string[] Roles { get; } 6 | } 7 | -------------------------------------------------------------------------------- /src/corePackages/Core.Application/Requests/PageRequest.cs: -------------------------------------------------------------------------------- 1 | namespace Core.Application.Requests; 2 | 3 | public class PageRequest 4 | { 5 | public int PageIndex { get; set; } 6 | public int PageSize { get; set; } 7 | } 8 | -------------------------------------------------------------------------------- /src/corePackages/Core.ElasticSearch/Models/IElasticSearchResult.cs: -------------------------------------------------------------------------------- 1 | namespace Core.ElasticSearch.Models; 2 | 3 | public interface IElasticSearchResult 4 | { 5 | public bool Success { get; } 6 | public string? Message { get; } 7 | } 8 | -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Cities/Constants/CitiesBusinessMessages.cs: -------------------------------------------------------------------------------- 1 | namespace Application.Features.Cities.Constants; 2 | 3 | public static class CitiesBusinessMessages 4 | { 5 | public const string CityNotExists = "City not exists."; 6 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Images/Constants/ImagesBusinessMessages.cs: -------------------------------------------------------------------------------- 1 | namespace Application.Features.Images.Constants; 2 | 3 | public static class ImagesBusinessMessages 4 | { 5 | public const string ImageNotExists = "İmage not exists."; 6 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Answers/Constants/AnswersBusinessMessages.cs: -------------------------------------------------------------------------------- 1 | namespace Application.Features.Answers.Constants; 2 | 3 | public static class AnswersBusinessMessages 4 | { 5 | public const string AnswerNotExists = "Answer not exists."; 6 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Courses/Constants/CoursesBusinessMessages.cs: -------------------------------------------------------------------------------- 1 | namespace Application.Features.Courses.Constants; 2 | 3 | public static class CoursesBusinessMessages 4 | { 5 | public const string CourseNotExists = "Course not exists."; 6 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Exams/Constants/ExamsBusinessMessages.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DotNetReactFullStack/TobetoPlatformCleanArchitecture/HEAD/src/tobetoPlatformCleanArchitecture/Application/Features/Exams/Constants/ExamsBusinessMessages.cs -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Lessons/Constants/LessonsBusinessMessages.cs: -------------------------------------------------------------------------------- 1 | namespace Application.Features.Lessons.Constants; 2 | 3 | public static class LessonsBusinessMessages 4 | { 5 | public const string LessonNotExists = "Lesson not exists."; 6 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Surveys/Constants/SurveysBusinessMessages.cs: -------------------------------------------------------------------------------- 1 | namespace Application.Features.Surveys.Constants; 2 | 3 | public static class SurveysBusinessMessages 4 | { 5 | public const string SurveyNotExists = "Survey not exists."; 6 | } -------------------------------------------------------------------------------- /src/corePackages/Core.Application/Pipelines/Caching/ICacheRemoverRequest.cs: -------------------------------------------------------------------------------- 1 | namespace Core.Application.Pipelines.Caching; 2 | 3 | public interface ICacheRemoverRequest 4 | { 5 | bool BypassCache { get; } 6 | string? CacheKey { get; } 7 | string? CacheGroupKey { get; } 8 | } 9 | -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Addresses/Constants/AddressesBusinessMessages.cs: -------------------------------------------------------------------------------- 1 | namespace Application.Features.Addresses.Constants; 2 | 3 | public static class AddressesBusinessMessages 4 | { 5 | public const string AddressNotExists = "Address not exists."; 6 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Colleges/Constants/CollegesBusinessMessages.cs: -------------------------------------------------------------------------------- 1 | namespace Application.Features.Colleges.Constants; 2 | 3 | public static class CollegesBusinessMessages 4 | { 5 | public const string CollegeNotExists = "College not exists."; 6 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Countries/Constants/CountriesBusinessMessages.cs: -------------------------------------------------------------------------------- 1 | namespace Application.Features.Countries.Constants; 2 | 3 | public static class CountriesBusinessMessages 4 | { 5 | public const string CountryNotExists = "Country not exists."; 6 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Contracts/Constants/ContractsBusinessMessages.cs: -------------------------------------------------------------------------------- 1 | namespace Application.Features.Contracts.Constants; 2 | 3 | public static class ContractsBusinessMessages 4 | { 5 | public const string ContractNotExists = "Contract not exists."; 6 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Districts/Constants/DistrictsBusinessMessages.cs: -------------------------------------------------------------------------------- 1 | namespace Application.Features.Districts.Constants; 2 | 3 | public static class DistrictsBusinessMessages 4 | { 5 | public const string DistrictNotExists = "District not exists."; 6 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Questions/Constants/QuestionsBusinessMessages.cs: -------------------------------------------------------------------------------- 1 | namespace Application.Features.Questions.Constants; 2 | 3 | public static class QuestionsBusinessMessages 4 | { 5 | public const string QuestionNotExists = "Question not exists."; 6 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Recourses/Constants/RecoursesBusinessMessages.cs: -------------------------------------------------------------------------------- 1 | namespace Application.Features.Recourses.Constants; 2 | 3 | public static class RecoursesBusinessMessages 4 | { 5 | public const string RecourseNotExists = "Recourse not exists."; 6 | } -------------------------------------------------------------------------------- /src/corePackages/Core.Persistence/Repositories/IEntityTimestamps.cs: -------------------------------------------------------------------------------- 1 | namespace Core.Persistence.Repositories; 2 | 3 | public interface IEntityTimestamps 4 | { 5 | DateTime CreatedDate { get; set; } 6 | DateTime? UpdatedDate { get; set; } 7 | DateTime? DeletedDate { get; set; } 8 | } 9 | -------------------------------------------------------------------------------- /src/corePackages/Core.Security/EmailAuthenticator/IEmailAuthenticatorHelper.cs: -------------------------------------------------------------------------------- 1 | namespace Core.Security.EmailAuthenticator; 2 | 3 | public interface IEmailAuthenticatorHelper 4 | { 5 | public Task CreateEmailActivationKey(); 6 | public Task CreateEmailActivationCode(); 7 | } 8 | -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Cities/Commands/Delete/DeletedCityResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Cities.Commands.Delete; 4 | 5 | public class DeletedCityResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Classrooms/Constants/ClassroomsBusinessMessages.cs: -------------------------------------------------------------------------------- 1 | namespace Application.Features.Classrooms.Constants; 2 | 3 | public static class ClassroomsBusinessMessages 4 | { 5 | public const string ClassroomNotExists = "Classroom not exists."; 6 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Exams/Commands/Delete/DeletedExamResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Exams.Commands.Delete; 4 | 5 | public class DeletedExamResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Images/Commands/Delete/DeletedImageResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Images.Commands.Delete; 4 | 5 | public class DeletedImageResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Answers/Commands/Delete/DeletedAnswerResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Answers.Commands.Delete; 4 | 5 | public class DeletedAnswerResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Courses/Commands/Delete/DeletedCourseResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Courses.Commands.Delete; 4 | 5 | public class DeletedCourseResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Experiences/Constants/ExperiencesBusinessMessages.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DotNetReactFullStack/TobetoPlatformCleanArchitecture/HEAD/src/tobetoPlatformCleanArchitecture/Application/Features/Experiences/Constants/ExperiencesBusinessMessages.cs -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Lessons/Commands/Delete/DeletedLessonResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Lessons.Commands.Delete; 4 | 5 | public class DeletedLessonResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/SurveyTypes/Constants/SurveyTypesBusinessMessages.cs: -------------------------------------------------------------------------------- 1 | namespace Application.Features.SurveyTypes.Constants; 2 | 3 | public static class SurveyTypesBusinessMessages 4 | { 5 | public const string SurveyTypeNotExists = "Survey type not exists."; 6 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Surveys/Commands/Delete/DeletedSurveyResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Surveys.Commands.Delete; 4 | 5 | public class DeletedSurveyResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Users/Commands/Delete/DeletedUserResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Users.Commands.Delete; 4 | 5 | public class DeletedUserResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } 9 | -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Accounts/Commands/Delete/DeletedAccountResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Accounts.Commands.Delete; 4 | 5 | public class DeletedAccountResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Addresses/Commands/Delete/DeletedAddressResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Addresses.Commands.Delete; 4 | 5 | public class DeletedAddressResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Capabilities/Constants/CapabilitiesBusinessMessages.cs: -------------------------------------------------------------------------------- 1 | namespace Application.Features.Capabilities.Constants; 2 | 3 | public static class CapabilitiesBusinessMessages 4 | { 5 | public const string CapabilityNotExists = "Capability not exists."; 6 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Certificates/Constants/CertificatesBusinessMessages.cs: -------------------------------------------------------------------------------- 1 | namespace Application.Features.Certificates.Constants; 2 | 3 | public static class CertificatesBusinessMessages 4 | { 5 | public const string CertificateNotExists = "Certificate not exists."; 6 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Colleges/Commands/Delete/DeletedCollegeResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Colleges.Commands.Delete; 4 | 5 | public class DeletedCollegeResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Countries/Commands/Delete/DeletedCountryResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Countries.Commands.Delete; 4 | 5 | public class DeletedCountryResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/ICityRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface ICityRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/IExamRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface IExamRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Auth/Constants/AuthOperationClaims.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | namespace Application.Features.Auth.Constants 3 | { 4 | public static class AuthOperationClaims 5 | { 6 | public const int DefaultOperationClaimIdForEachRegistration = 3; 7 | } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Contracts/Commands/Delete/DeletedContractResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Contracts.Commands.Delete; 4 | 5 | public class DeletedContractResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Districts/Commands/Delete/DeletedDistrictResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Districts.Commands.Delete; 4 | 5 | public class DeletedDistrictResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/ExamQuestions/Constants/ExamQuestionsBusinessMessages.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DotNetReactFullStack/TobetoPlatformCleanArchitecture/HEAD/src/tobetoPlatformCleanArchitecture/Application/Features/ExamQuestions/Constants/ExamQuestionsBusinessMessages.cs -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/LearningPaths/Constants/LearningPathsBusinessMessages.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DotNetReactFullStack/TobetoPlatformCleanArchitecture/HEAD/src/tobetoPlatformCleanArchitecture/Application/Features/LearningPaths/Constants/LearningPathsBusinessMessages.cs -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Questions/Commands/Delete/DeletedQuestionResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Questions.Commands.Delete; 4 | 5 | public class DeletedQuestionResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Recourses/Commands/Delete/DeletedRecourseResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Recourses.Commands.Delete; 4 | 5 | public class DeletedRecourseResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/IImageRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface IImageRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/IUserRepository.cs: -------------------------------------------------------------------------------- 1 | using Core.Persistence.Repositories; 2 | using Core.Security.Entities; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface IUserRepository : IAsyncRepository, IRepository { } 7 | -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Announcements/Constants/AnnouncementsBusinessMessages.cs: -------------------------------------------------------------------------------- 1 | namespace Application.Features.Announcements.Constants; 2 | 3 | public static class AnnouncementsBusinessMessages 4 | { 5 | public const string AnnouncementNotExists = "Announcement not exists."; 6 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Classrooms/Commands/Delete/DeletedClassroomResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Classrooms.Commands.Delete; 4 | 5 | public class DeletedClassroomResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/ContractTypes/Constants/ContractTypesBusinessMessages.cs: -------------------------------------------------------------------------------- 1 | namespace Application.Features.ContractTypes.Constants; 2 | 3 | public static class ContractTypesBusinessMessages 4 | { 5 | public const string ContractTypeNotExists = "Contract type not exists."; 6 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Experiences/Commands/Delete/DeletedExperienceResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Experiences.Commands.Delete; 4 | 5 | public class DeletedExperienceResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Organizations/Constants/OrganizationsBusinessMessages.cs: -------------------------------------------------------------------------------- 1 | namespace Application.Features.Organizations.Constants; 2 | 3 | public static class OrganizationsBusinessMessages 4 | { 5 | public const string OrganizationNotExists = "Organization not exists."; 6 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/RecourseSteps/Constants/RecourseStepsBusinessMessages.cs: -------------------------------------------------------------------------------- 1 | namespace Application.Features.RecourseSteps.Constants; 2 | 3 | public static class RecourseStepsBusinessMessages 4 | { 5 | public const string RecourseStepNotExists = "Recourse step not exists."; 6 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/SurveyTypes/Commands/Delete/DeletedSurveyTypeResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.SurveyTypes.Commands.Delete; 4 | 5 | public class DeletedSurveyTypeResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/IAnswerRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface IAnswerRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/ICourseRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface ICourseRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/ILessonRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface ILessonRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/ISurveyRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface ISurveyRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/corePackages/Core.CrossCuttingConcerns/Logging/Serilog/ConfigurationModels/GraylogConfiguration.cs: -------------------------------------------------------------------------------- 1 | namespace Core.CrossCuttingConcerns.Logging.Serilog.ConfigurationModels; 2 | 3 | public class GraylogConfiguration 4 | { 5 | public string? HostnameOrAddress { get; set; } 6 | public int Port { get; set; } 7 | } 8 | -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountCourses/Constants/AccountCoursesBusinessMessages.cs: -------------------------------------------------------------------------------- 1 | namespace Application.Features.AccountCourses.Constants; 2 | 3 | public static class AccountCoursesBusinessMessages 4 | { 5 | public const string AccountCourseNotExists = "Account course not exists."; 6 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountLessons/Constants/AccountLessonsBusinessMessages.cs: -------------------------------------------------------------------------------- 1 | namespace Application.Features.AccountLessons.Constants; 2 | 3 | public static class AccountLessonsBusinessMessages 4 | { 5 | public const string AccountLessonNotExists = "Account lesson not exists."; 6 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Capabilities/Commands/Delete/DeletedCapabilityResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Capabilities.Commands.Delete; 4 | 5 | public class DeletedCapabilityResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Certificates/Commands/Delete/DeletedCertificateResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Certificates.Commands.Delete; 4 | 5 | public class DeletedCertificateResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/ClassroomExams/Constants/ClassroomExamsBusinessMessages.cs: -------------------------------------------------------------------------------- 1 | namespace Application.Features.ClassroomExams.Constants; 2 | 3 | public static class ClassroomExamsBusinessMessages 4 | { 5 | public const string ClassroomExamNotExists = "Classroom exam not exists."; 6 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/IAccountRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface IAccountRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/IAddressRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface IAddressRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/ICollegeRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface ICollegeRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/ICountryRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface ICountryRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/corePackages/Core.CrossCuttingConcerns/Logging/Serilog/Messages/SerilogMessages.cs: -------------------------------------------------------------------------------- 1 | namespace Core.CrossCuttingConcerns.Logging.Serilog.Messages; 2 | 3 | public static class SerilogMessages 4 | { 5 | public static string NullOptionsMessage => "You have sent a blank value! Something went wrong. Please try again."; 6 | } 7 | -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Announcements/Commands/Delete/DeletedAnnouncementResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Announcements.Commands.Delete; 4 | 5 | public class DeletedAnnouncementResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/ContractTypes/Commands/Delete/DeletedContractTypeResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.ContractTypes.Commands.Delete; 4 | 5 | public class DeletedContractTypeResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/ExamQuestions/Commands/Delete/DeletedExamQuestionResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.ExamQuestions.Commands.Delete; 4 | 5 | public class DeletedExamQuestionResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/ImageExtensions/Constants/ImageExtensionsBusinessMessages.cs: -------------------------------------------------------------------------------- 1 | namespace Application.Features.ImageExtensions.Constants; 2 | 3 | public static class ImageExtensionsBusinessMessages 4 | { 5 | public const string ImageExtensionNotExists = "İmage extension not exists."; 6 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/LearningPaths/Commands/Delete/DeletedLearningPathResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.LearningPaths.Commands.Delete; 4 | 5 | public class DeletedLearningPathResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Organizations/Commands/Delete/DeletedOrganizationResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Organizations.Commands.Delete; 4 | 5 | public class DeletedOrganizationResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/RecourseDetails/Constants/RecourseDetailsBusinessMessages.cs: -------------------------------------------------------------------------------- 1 | namespace Application.Features.RecourseDetails.Constants; 2 | 3 | public static class RecourseDetailsBusinessMessages 4 | { 5 | public const string RecourseDetailNotExists = "Recourse detail not exists."; 6 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/RecourseSteps/Commands/Delete/DeletedRecourseStepResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.RecourseSteps.Commands.Delete; 4 | 5 | public class DeletedRecourseStepResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/IClassroomRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface IClassroomRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/IContractRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface IContractRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/IDistrictRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface IDistrictRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/IQuestionRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface IQuestionRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/IRecourseRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface IRecourseRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /tests/Application.Tests/Startup.cs: -------------------------------------------------------------------------------- 1 | using Application.Tests.DependencyResolvers; 2 | using Microsoft.Extensions.DependencyInjection; 3 | 4 | namespace Application.Tests; 5 | 6 | public sealed class Startup 7 | { 8 | public void ConfigureServices(IServiceCollection services) => services.AddUsersServices(); 9 | } 10 | -------------------------------------------------------------------------------- /src/corePackages/Core.Application/Pipelines/Caching/ICachableRequest.cs: -------------------------------------------------------------------------------- 1 | namespace Core.Application.Pipelines.Caching; 2 | 3 | public interface ICachableRequest 4 | { 5 | bool BypassCache { get; } 6 | string CacheKey { get; } 7 | string? CacheGroupKey { get; } 8 | TimeSpan? SlidingExpiration { get; } 9 | } 10 | -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountContracts/Constants/AccountContractsBusinessMessages.cs: -------------------------------------------------------------------------------- 1 | namespace Application.Features.AccountContracts.Constants; 2 | 3 | public static class AccountContractsBusinessMessages 4 | { 5 | public const string AccountContractNotExists = "Account contract not exists."; 6 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountCourses/Commands/Delete/DeletedAccountCourseResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.AccountCourses.Commands.Delete; 4 | 5 | public class DeletedAccountCourseResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountLessons/Commands/Delete/DeletedAccountLessonResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.AccountLessons.Commands.Delete; 4 | 5 | public class DeletedAccountLessonResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountRecourses/Constants/AccountRecoursesBusinessMessages.cs: -------------------------------------------------------------------------------- 1 | namespace Application.Features.AccountRecourses.Constants; 2 | 3 | public static class AccountRecoursesBusinessMessages 4 | { 5 | public const string AccountRecourseNotExists = "Account recourse not exists."; 6 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/ClassroomExams/Commands/Delete/DeletedClassroomExamResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.ClassroomExams.Commands.Delete; 4 | 5 | public class DeletedClassroomExamResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/CourseCategories/Constants/CourseCategoriesBusinessMessages.cs: -------------------------------------------------------------------------------- 1 | namespace Application.Features.CourseCategories.Constants; 2 | 3 | public static class CourseCategoriesBusinessMessages 4 | { 5 | public const string CourseCategoryNotExists = "Course category not exists."; 6 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/ForeignLanguages/Constants/ForeignLanguagesBusinessMessages.cs: -------------------------------------------------------------------------------- 1 | namespace Application.Features.ForeignLanguages.Constants; 2 | 3 | public static class ForeignLanguagesBusinessMessages 4 | { 5 | public const string ForeignLanguageNotExists = "Foreign language not exists."; 6 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/ICapabilityRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface ICapabilityRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/IExperienceRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface IExperienceRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/ISurveyTypeRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface ISurveyTypeRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/corePackages/Core.Security/JWT/ITokenHelper.cs: -------------------------------------------------------------------------------- 1 | using Core.Security.Entities; 2 | 3 | namespace Core.Security.JWT; 4 | 5 | public interface ITokenHelper 6 | { 7 | AccessToken CreateToken(User user, IList operationClaims); 8 | 9 | RefreshToken CreateRefreshToken(User user, string ipAddress); 10 | } 11 | -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountContracts/Commands/Delete/DeletedAccountContractResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.AccountContracts.Commands.Delete; 4 | 5 | public class DeletedAccountContractResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountRecourses/Commands/Delete/DeletedAccountRecourseResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.AccountRecourses.Commands.Delete; 4 | 5 | public class DeletedAccountRecourseResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/CourseCategories/Commands/Delete/DeletedCourseCategoryResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.CourseCategories.Commands.Delete; 4 | 5 | public class DeletedCourseCategoryResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/ForeignLanguages/Commands/Delete/DeletedForeignLanguageResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.ForeignLanguages.Commands.Delete; 4 | 5 | public class DeletedForeignLanguageResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/ImageExtensions/Commands/Delete/DeletedImageExtensionResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.ImageExtensions.Commands.Delete; 4 | 5 | public class DeletedImageExtensionResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/RecourseDetails/Commands/Delete/DeletedRecourseDetailResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.RecourseDetails.Commands.Delete; 4 | 5 | public class DeletedRecourseDetailResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/ICertificateRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface ICertificateRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountClassrooms/Commands/Delete/DeletedAccountClassroomResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.AccountClassrooms.Commands.Delete; 4 | 5 | public class DeletedAccountClassroomResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountClassrooms/Constants/AccountClassroomsBusinessMessages.cs: -------------------------------------------------------------------------------- 1 | namespace Application.Features.AccountClassrooms.Constants; 2 | 3 | public static class AccountClassroomsBusinessMessages 4 | { 5 | public const string AccountClassroomNotExists = "Account classroom not exists."; 6 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AnnouncementTypes/Commands/Delete/DeletedAnnouncementTypeResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.AnnouncementTypes.Commands.Delete; 4 | 5 | public class DeletedAnnouncementTypeResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AnnouncementTypes/Constants/AnnouncementTypesBusinessMessages.cs: -------------------------------------------------------------------------------- 1 | namespace Application.Features.AnnouncementTypes.Constants; 2 | 3 | public static class AnnouncementTypesBusinessMessages 4 | { 5 | public const string AnnouncementTypeNotExists = "Announcement type not exists."; 6 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/EducationPrograms/Commands/Delete/DeletedEducationProgramResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.EducationPrograms.Commands.Delete; 4 | 5 | public class DeletedEducationProgramResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/EducationPrograms/Constants/EducationProgramsBusinessMessages.cs: -------------------------------------------------------------------------------- 1 | namespace Application.Features.EducationPrograms.Constants; 2 | 3 | public static class EducationProgramsBusinessMessages 4 | { 5 | public const string EducationProgramNotExists = "Education program not exists."; 6 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/GraduationStatuses/Constants/GraduationStatusesBusinessMessages.cs: -------------------------------------------------------------------------------- 1 | namespace Application.Features.GraduationStatuses.Constants; 2 | 3 | public static class GraduationStatusesBusinessMessages 4 | { 5 | public const string GraduationStatusNotExists = "Graduation status not exists."; 6 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/OperationClaims/Commands/Delete/DeletedOperationClaimResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.OperationClaims.Commands.Delete; 4 | 5 | public class DeletedOperationClaimResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } 9 | -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/OrganizationTypes/Commands/Delete/DeletedOrganizationTypeResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.OrganizationTypes.Commands.Delete; 4 | 5 | public class DeletedOrganizationTypeResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/OrganizationTypes/Constants/OrganizationTypesBusinessMessages.cs: -------------------------------------------------------------------------------- 1 | namespace Application.Features.OrganizationTypes.Constants; 2 | 3 | public static class OrganizationTypesBusinessMessages 4 | { 5 | public const string OrganizationTypeNotExists = "Organization type not exists."; 6 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/QuestionCategories/Constants/QuestionCategoriesBusinessMessages.cs: -------------------------------------------------------------------------------- 1 | namespace Application.Features.QuestionCategories.Constants; 2 | 3 | public static class QuestionCategoriesBusinessMessages 4 | { 5 | public const string QuestionCategoryNotExists = "Question category not exists."; 6 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/IAnnouncementRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface IAnnouncementRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/IContractTypeRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface IContractTypeRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/IExamQuestionRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface IExamQuestionRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/ILearningPathRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface ILearningPathRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/IOrganizationRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface IOrganizationRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/IRecourseStepRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface IRecourseStepRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountCapabilities/Commands/Delete/DeletedAccountCapabilityResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.AccountCapabilities.Commands.Delete; 4 | 5 | public class DeletedAccountCapabilityResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountExamResults/Commands/Delete/DeletedAccountExamResultResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.AccountExamResults.Commands.Delete; 4 | 5 | public class DeletedAccountExamResultResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountExamResults/Constants/AccountExamResultsBusinessMessages.cs: -------------------------------------------------------------------------------- 1 | namespace Application.Features.AccountExamResults.Constants; 2 | 3 | public static class AccountExamResultsBusinessMessages 4 | { 5 | public const string AccountExamResultNotExists = "Account exam result not exists."; 6 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/GraduationStatuses/Commands/Delete/DeletedGraduationStatusResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.GraduationStatuses.Commands.Delete; 4 | 5 | public class DeletedGraduationStatusResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/QuestionCategories/Commands/Delete/DeletedQuestionCategoryResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.QuestionCategories.Commands.Delete; 4 | 5 | public class DeletedQuestionCategoryResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/IAccountCourseRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface IAccountCourseRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/IAccountLessonRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface IAccountLessonRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/IClassroomExamRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface IClassroomExamRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/ICourseCategoryRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface ICourseCategoryRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/IImageExtensionRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface IImageExtensionRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/IRecourseDetailRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface IRecourseDetailRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/IRefreshTokenRepository.cs: -------------------------------------------------------------------------------- 1 | using Core.Persistence.Repositories; 2 | using Core.Security.Entities; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface IRefreshTokenRepository : IAsyncRepository, IRepository { } 7 | -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountCapabilities/Constants/AccountCapabilitiesBusinessMessages.cs: -------------------------------------------------------------------------------- 1 | namespace Application.Features.AccountCapabilities.Constants; 2 | 3 | public static class AccountCapabilitiesBusinessMessages 4 | { 5 | public const string AccountCapabilityNotExists = "Account capability not exists."; 6 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountCertificates/Commands/Delete/DeletedAccountCertificateResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.AccountCertificates.Commands.Delete; 4 | 5 | public class DeletedAccountCertificateResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountCertificates/Constants/AccountCertificatesBusinessMessages.cs: -------------------------------------------------------------------------------- 1 | namespace Application.Features.AccountCertificates.Constants; 2 | 3 | public static class AccountCertificatesBusinessMessages 4 | { 5 | public const string AccountCertificateNotExists = "Account certificate not exists."; 6 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountCollegeMetadatas/Constants/AccountCollegeMetadatasBusinessMessages.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DotNetReactFullStack/TobetoPlatformCleanArchitecture/HEAD/src/tobetoPlatformCleanArchitecture/Application/Features/AccountCollegeMetadatas/Constants/AccountCollegeMetadatasBusinessMessages.cs -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Accounts/Constants/AccountsBusinessRuleConstants.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | namespace Application.Features.Accounts.Constants 3 | { 4 | public static class AccountsBusinessRuleConstants 5 | { 6 | public const int MaximumNumberOfAccountsForEachUser = 1; 7 | } 8 | } 9 | 10 | -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/CourseLearningPaths/Commands/Delete/DeletedCourseLearningPathResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.CourseLearningPaths.Commands.Delete; 4 | 5 | public class DeletedCourseLearningPathResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/CourseLearningPaths/Constants/CourseLearningPathsBusinessMessages.cs: -------------------------------------------------------------------------------- 1 | namespace Application.Features.CourseLearningPaths.Constants; 2 | 3 | public static class CourseLearningPathsBusinessMessages 4 | { 5 | public const string CourseLearningPathNotExists = "Course learning path not exists."; 6 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/RecourseDetailSteps/Commands/Delete/DeletedRecourseDetailStepResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.RecourseDetailSteps.Commands.Delete; 4 | 5 | public class DeletedRecourseDetailStepResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/RecourseDetailSteps/Constants/RecourseDetailStepsBusinessMessages.cs: -------------------------------------------------------------------------------- 1 | namespace Application.Features.RecourseDetailSteps.Constants; 2 | 3 | public static class RecourseDetailStepsBusinessMessages 4 | { 5 | public const string RecourseDetailStepNotExists = "Recourse detail step not exists."; 6 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/IAccountContractRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface IAccountContractRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/IAccountRecourseRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface IAccountRecourseRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/IForeignLanguageRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface IForeignLanguageRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/IOperationClaimRepository.cs: -------------------------------------------------------------------------------- 1 | using Core.Persistence.Repositories; 2 | using Core.Security.Entities; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface IOperationClaimRepository : IAsyncRepository, IRepository { } 7 | -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountAnnouncements/Commands/Delete/DeletedAccountAnnouncementResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.AccountAnnouncements.Commands.Delete; 4 | 5 | public class DeletedAccountAnnouncementResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountAnnouncements/Constants/AccountAnnouncementsBusinessMessages.cs: -------------------------------------------------------------------------------- 1 | namespace Application.Features.AccountAnnouncements.Constants; 2 | 3 | public static class AccountAnnouncementsBusinessMessages 4 | { 5 | public const string AccountAnnouncementNotExists = "Account announcement not exists."; 6 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountLearningPaths/Commands/Delete/DeletedAccountLearningPathResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.AccountLearningPaths.Commands.Delete; 4 | 5 | public class DeletedAccountLearningPathResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountLearningPaths/Constants/AccountLearningPathsBusinessMessages.cs: -------------------------------------------------------------------------------- 1 | namespace Application.Features.AccountLearningPaths.Constants; 2 | 3 | public static class AccountLearningPathsBusinessMessages 4 | { 5 | public const string AccountLearningPathNotExists = "Account learning path not exists."; 6 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/ForeignLanguageLevels/Commands/Delete/DeletedForeignLanguageLevelResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.ForeignLanguageLevels.Commands.Delete; 4 | 5 | public class DeletedForeignLanguageLevelResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/SocialMediaPlatforms/Commands/Delete/DeletedSocialMediaPlatformResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.SocialMediaPlatforms.Commands.Delete; 4 | 5 | public class DeletedSocialMediaPlatformResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/SocialMediaPlatforms/Constants/SocialMediaPlatformsBusinessMessages.cs: -------------------------------------------------------------------------------- 1 | namespace Application.Features.SocialMediaPlatforms.Constants; 2 | 3 | public static class SocialMediaPlatformsBusinessMessages 4 | { 5 | public const string SocialMediaPlatformNotExists = "Social media platform not exists."; 6 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/UserOperationClaims/Commands/Delete/DeletedUserOperationClaimResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.UserOperationClaims.Commands.Delete; 4 | 5 | public class DeletedUserOperationClaimResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } 9 | -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/IAccountClassroomRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface IAccountClassroomRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/IAnnouncementTypeRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface IAnnouncementTypeRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/IEducationProgramRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface IEducationProgramRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/IGraduationStatusRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface IGraduationStatusRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/IOrganizationTypeRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface IOrganizationTypeRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/IQuestionCategoryRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface IQuestionCategoryRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountRecourseDetails/Commands/Delete/DeletedAccountRecourseDetailResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.AccountRecourseDetails.Commands.Delete; 4 | 5 | public class DeletedAccountRecourseDetailResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/ExamQuestions/Constants/ExamQuestionBusinessRuleConstants.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | namespace Application.Features.ExamQuestions.Constants 3 | { 4 | public static class ExamQuestionBusinessRuleConstants 5 | { 6 | public const int MaximumNumberOfExamQuestion = 100; 7 | } 8 | } 9 | 10 | -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/LearningPathCategories/Commands/Delete/DeletedLearningPathCategoryResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.LearningPathCategories.Commands.Delete; 4 | 5 | public class DeletedLearningPathCategoryResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/IAccountCapabilityRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface IAccountCapabilityRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/IAccountExamResultRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface IAccountExamResultRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/IOtpAuthenticatorRepository.cs: -------------------------------------------------------------------------------- 1 | using Core.Persistence.Repositories; 2 | using Core.Security.Entities; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface IOtpAuthenticatorRepository : IAsyncRepository, IRepository { } 7 | -------------------------------------------------------------------------------- /src/corePackages/Core.Security/OtpAuthenticator/IOtpAuthenticatorHelper.cs: -------------------------------------------------------------------------------- 1 | namespace Core.Security.OtpAuthenticator; 2 | 3 | public interface IOtpAuthenticatorHelper 4 | { 5 | public Task GenerateSecretKey(); 6 | public Task ConvertSecretKeyToString(byte[] secretKey); 7 | public Task VerifyCode(byte[] secretKey, string code); 8 | } 9 | -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountCollegeMetadatas/Commands/Delete/DeletedAccountCollegeMetadataResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.AccountCollegeMetadatas.Commands.Delete; 4 | 5 | public class DeletedAccountCollegeMetadataResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/ForeignLanguageLevels/Constants/ForeignLanguageLevelsBusinessMessages.cs: -------------------------------------------------------------------------------- 1 | namespace Application.Features.ForeignLanguageLevels.Constants; 2 | 3 | public static class ForeignLanguageLevelsBusinessMessages 4 | { 5 | public const string ForeignLanguageLevelNotExists = "Foreign language level not exists."; 6 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/LearningPathCategories/Constants/LearningPathCategoriesBusinessMessages.cs: -------------------------------------------------------------------------------- 1 | namespace Application.Features.LearningPathCategories.Constants; 2 | 3 | public static class LearningPathCategoriesBusinessMessages 4 | { 5 | public const string LearningPathCategoryNotExists = "Learning path category not exists."; 6 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/IAccountAnnouncementRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface IAccountAnnouncementRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/IAccountCertificateRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface IAccountCertificateRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/IAccountLearningPathRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface IAccountLearningPathRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/ICourseLearningPathRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface ICourseLearningPathRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/IEmailAuthenticatorRepository.cs: -------------------------------------------------------------------------------- 1 | using Core.Persistence.Repositories; 2 | using Core.Security.Entities; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface IEmailAuthenticatorRepository : IAsyncRepository, IRepository { } 7 | -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/IRecourseDetailStepRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface IRecourseDetailStepRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/ISocialMediaPlatformRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface ISocialMediaPlatformRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/IUserOperationClaimRepository.cs: -------------------------------------------------------------------------------- 1 | using Core.Persistence.Repositories; 2 | using Core.Security.Entities; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface IUserOperationClaimRepository : IAsyncRepository, IRepository { } 7 | -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountRecourseDetails/Constants/AccountRecourseDetailsBusinessMessages.cs: -------------------------------------------------------------------------------- 1 | namespace Application.Features.AccountRecourseDetails.Constants; 2 | 3 | public static class AccountRecourseDetailsBusinessMessages 4 | { 5 | public const string AccountRecourseDetailNotExists = "Account recourse detail not exists."; 6 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/IForeignLanguageLevelRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface IForeignLanguageLevelRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/ILearningPathCategoryRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface ILearningPathCategoryRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/corePackages/Core.Security/Encryption/SecurityKeyHelper.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.IdentityModel.Tokens; 2 | using System.Text; 3 | 4 | namespace Core.Security.Encryption; 5 | 6 | public static class SecurityKeyHelper 7 | { 8 | public static SecurityKey CreateSecurityKey(string securityKey) => new SymmetricSecurityKey(Encoding.UTF8.GetBytes(securityKey)); 9 | } 10 | -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/OperationClaims/Constants/GeneralOperationClaims.cs: -------------------------------------------------------------------------------- 1 | namespace Application.Features.OperationClaims.Constants; 2 | 3 | public static class GeneralOperationClaims 4 | { 5 | public const string Admin = "Admin"; 6 | public const string Instructor = "Instructor"; 7 | public const string Student = "Student"; 8 | } 9 | -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/IAccountRecourseDetailRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface IAccountRecourseDetailRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /.config/dotnet-tools.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": 1, 3 | "isRoot": true, 4 | "tools": { 5 | "csharpier": { 6 | "version": "0.22.1", 7 | "commands": [ 8 | "dotnet-csharpier" 9 | ] 10 | }, 11 | "roslynator.dotnet.cli": { 12 | "version": "0.5.0", 13 | "commands": [ 14 | "roslynator" 15 | ] 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /src/corePackages/Core.Persistence/Paging/IPaginate.cs: -------------------------------------------------------------------------------- 1 | namespace Core.Persistence.Paging; 2 | 3 | public interface IPaginate 4 | { 5 | int From { get; } 6 | int Index { get; } 7 | int Size { get; } 8 | int Count { get; } 9 | int Pages { get; } 10 | IList Items { get; } 11 | bool HasPrevious { get; } 12 | bool HasNext { get; } 13 | } 14 | -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountForeignLanguageMetadatas/Constants/AccountForeignLanguageMetadatasBusinessMessages.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DotNetReactFullStack/TobetoPlatformCleanArchitecture/HEAD/src/tobetoPlatformCleanArchitecture/Application/Features/AccountForeignLanguageMetadatas/Constants/AccountForeignLanguageMetadatasBusinessMessages.cs -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountSocialMediaPlatforms/Commands/Delete/DeletedAccountSocialMediaPlatformResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.AccountSocialMediaPlatforms.Commands.Delete; 4 | 5 | public class DeletedAccountSocialMediaPlatformResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/OperationClaims/Constants/OperationClaimsMessages.cs: -------------------------------------------------------------------------------- 1 | namespace Application.Features.OperationClaims.Constants; 2 | 3 | public static class OperationClaimsMessages 4 | { 5 | public const string NotExists = "Operation Claim not exists."; 6 | public const string AlreadyExists = "Operation Claim already exists."; 7 | } 8 | -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/IAccountCollegeMetadataRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface IAccountCollegeMetadataRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/corePackages/Core.Security/Encryption/SigningCredentialsHelper.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.IdentityModel.Tokens; 2 | 3 | namespace Core.Security.Encryption; 4 | 5 | public static class SigningCredentialsHelper 6 | { 7 | public static SigningCredentials CreateSigningCredentials(SecurityKey securityKey) => 8 | new(securityKey, SecurityAlgorithms.HmacSha512Signature); 9 | } 10 | -------------------------------------------------------------------------------- /src/corePackages/Core.Test/Application/Constants/ValidationErrorCodes.cs: -------------------------------------------------------------------------------- 1 | namespace Core.Test.Application.Constants; 2 | 3 | public static class ValidationErrorCodes 4 | { 5 | public static string NotEmptyValidator => "NotEmptyValidator"; 6 | public static string MinimumLengthValidator => "MinimumLengthValidator"; 7 | public static string EmailValidator => "EmailValidator"; 8 | } 9 | -------------------------------------------------------------------------------- /src/corePackages/.config/dotnet-tools.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": 1, 3 | "isRoot": true, 4 | "tools": { 5 | "csharpier": { 6 | "version": "0.22.1", 7 | "commands": [ 8 | "dotnet-csharpier" 9 | ] 10 | }, 11 | "roslynator.dotnet.cli": { 12 | "version": "0.5.0", 13 | "commands": [ 14 | "roslynator" 15 | ] 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /src/corePackages/Core.Application/Responses/GetListResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Persistence.Paging; 2 | 3 | namespace Core.Application.Responses; 4 | 5 | public class GetListResponse : BasePageableModel 6 | { 7 | public IList Items 8 | { 9 | get => _items ??= new List(); 10 | set => _items = value; 11 | } 12 | 13 | private IList? _items; 14 | } 15 | -------------------------------------------------------------------------------- /src/corePackages/Core.Test/Application/FakeData/BaseFakeData.cs: -------------------------------------------------------------------------------- 1 | using Core.Persistence.Repositories; 2 | 3 | namespace Core.Test.Application.FakeData; 4 | 5 | public abstract class BaseFakeData 6 | where TEntity : Entity, new() 7 | { 8 | public List Data => CreateFakeData(); 9 | public abstract List CreateFakeData(); 10 | } 11 | -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountForeignLanguageMetadatas/Commands/Delete/DeletedAccountForeignLanguageMetadataResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.AccountForeignLanguageMetadatas.Commands.Delete; 4 | 5 | public class DeletedAccountForeignLanguageMetadataResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Colleges/Queries/GetList/GetListCollegeListItemDto.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Dtos; 2 | 3 | namespace Application.Features.Colleges.Queries.GetList; 4 | 5 | public class GetListCollegeListItemDto : IDto 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public bool Visibility { get; set; } 10 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/IAccountSocialMediaPlatformRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface IAccountSocialMediaPlatformRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Colleges/Commands/Create/CreatedCollegeResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Colleges.Commands.Create; 4 | 5 | public class CreatedCollegeResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public bool Visibility { get; set; } 10 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Colleges/Commands/Update/UpdatedCollegeResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Colleges.Commands.Update; 4 | 5 | public class UpdatedCollegeResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public bool Visibility { get; set; } 10 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Colleges/Queries/GetById/GetByIdCollegeResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Colleges.Queries.GetById; 4 | 5 | public class GetByIdCollegeResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public bool Visibility { get; set; } 10 | } -------------------------------------------------------------------------------- /src/corePackages/Core.CrossCuttingConcerns/Exceptions/Extensions/ExceptionMiddlewareExtensions.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore.Builder; 2 | 3 | namespace Core.CrossCuttingConcerns.Exceptions.Extensions; 4 | 5 | public static class ExceptionMiddlewareExtensions 6 | { 7 | public static void ConfigureCustomExceptionMiddleware(this IApplicationBuilder app) => app.UseMiddleware(); 8 | } 9 | -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Exams/Commands/Delete/DeletedExamCommandValidator.cs: -------------------------------------------------------------------------------- 1 | using FluentValidation; 2 | 3 | namespace Application.Features.Exams.Commands.Delete; 4 | 5 | public class DeleteExamCommandValidator : AbstractValidator 6 | { 7 | public DeleteExamCommandValidator() 8 | { 9 | RuleFor(c => c.Id).NotEmpty(); 10 | } 11 | } -------------------------------------------------------------------------------- /src/corePackages/Core.Persistence/Paging/BasePageableModel.cs: -------------------------------------------------------------------------------- 1 | namespace Core.Persistence.Paging; 2 | 3 | public abstract class BasePageableModel 4 | { 5 | public int Index { get; set; } 6 | public int Size { get; set; } 7 | public int Count { get; set; } 8 | public int Pages { get; set; } 9 | public bool HasPrevious { get; set; } 10 | public bool HasNext { get; set; } 11 | } 12 | -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Cities/Commands/Delete/DeletedCityCommandValidator.cs: -------------------------------------------------------------------------------- 1 | using FluentValidation; 2 | 3 | namespace Application.Features.Cities.Commands.Delete; 4 | 5 | public class DeleteCityCommandValidator : AbstractValidator 6 | { 7 | public DeleteCityCommandValidator() 8 | { 9 | RuleFor(c => c.Id).NotEmpty(); 10 | } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Services/Repositories/IAccountForeignLanguageMetadataRepository.cs: -------------------------------------------------------------------------------- 1 | using Domain.Entities; 2 | using Core.Persistence.Repositories; 3 | 4 | namespace Application.Services.Repositories; 5 | 6 | public interface IAccountForeignLanguageMetadataRepository : IAsyncRepository, IRepository 7 | { 8 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/ContractTypes/Queries/GetList/GetListContractTypeListItemDto.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Dtos; 2 | 3 | namespace Application.Features.ContractTypes.Queries.GetList; 4 | 5 | public class GetListContractTypeListItemDto : IDto 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public bool IsActive { get; set; } 10 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/ExamQuestions/Queries/GetList/GetListExamQuestionListItemDto.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Dtos; 2 | 3 | namespace Application.Features.ExamQuestions.Queries.GetList; 4 | 5 | public class GetListExamQuestionListItemDto : IDto 6 | { 7 | public int Id { get; set; } 8 | public int ExamId { get; set; } 9 | public int QuestionId { get; set; } 10 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Images/Commands/Delete/DeletedImageCommandValidator.cs: -------------------------------------------------------------------------------- 1 | using FluentValidation; 2 | 3 | namespace Application.Features.Images.Commands.Delete; 4 | 5 | public class DeleteImageCommandValidator : AbstractValidator 6 | { 7 | public DeleteImageCommandValidator() 8 | { 9 | RuleFor(c => c.Id).NotEmpty(); 10 | } 11 | } -------------------------------------------------------------------------------- /src/corePackages/Core.CrossCuttingConcerns/Logging/Serilog/ConfigurationModels/ElasticSearchConfiguration.cs: -------------------------------------------------------------------------------- 1 | namespace Core.CrossCuttingConcerns.Logging.Serilog.ConfigurationModels; 2 | 3 | public class ElasticSearchConfiguration 4 | { 5 | public string ConnectionString { get; set; } 6 | 7 | public ElasticSearchConfiguration() 8 | { 9 | ConnectionString = string.Empty; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountSocialMediaPlatforms/Constants/AccountSocialMediaPlatformsBusinessRuleConstants.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | namespace Application.Features.AccountSocialMediaPlatforms.Constants 3 | { 4 | public static class AccountSocialMediaPlatformsBusinessRuleConstants 5 | { 6 | public const int AccountSocialMediaPlatformCount = 2; 7 | } 8 | } 9 | 10 | -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Answers/Commands/Delete/DeletedAnswerCommandValidator.cs: -------------------------------------------------------------------------------- 1 | using FluentValidation; 2 | 3 | namespace Application.Features.Answers.Commands.Delete; 4 | 5 | public class DeleteAnswerCommandValidator : AbstractValidator 6 | { 7 | public DeleteAnswerCommandValidator() 8 | { 9 | RuleFor(c => c.Id).NotEmpty(); 10 | } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/ContractTypes/Commands/Create/CreatedContractTypeResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.ContractTypes.Commands.Create; 4 | 5 | public class CreatedContractTypeResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public bool IsActive { get; set; } 10 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/ContractTypes/Commands/Update/UpdatedContractTypeResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.ContractTypes.Commands.Update; 4 | 5 | public class UpdatedContractTypeResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public bool IsActive { get; set; } 10 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/ContractTypes/Queries/GetById/GetByIdContractTypeResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.ContractTypes.Queries.GetById; 4 | 5 | public class GetByIdContractTypeResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public bool IsActive { get; set; } 10 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Courses/Commands/Delete/DeletedCourseCommandValidator.cs: -------------------------------------------------------------------------------- 1 | using FluentValidation; 2 | 3 | namespace Application.Features.Courses.Commands.Delete; 4 | 5 | public class DeleteCourseCommandValidator : AbstractValidator 6 | { 7 | public DeleteCourseCommandValidator() 8 | { 9 | RuleFor(c => c.Id).NotEmpty(); 10 | } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/ExamQuestions/Commands/Create/CreatedExamQuestionResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.ExamQuestions.Commands.Create; 4 | 5 | public class CreatedExamQuestionResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int ExamId { get; set; } 9 | public int QuestionId { get; set; } 10 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/ExamQuestions/Commands/Update/UpdatedExamQuestionResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.ExamQuestions.Commands.Update; 4 | 5 | public class UpdatedExamQuestionResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int ExamId { get; set; } 9 | public int QuestionId { get; set; } 10 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/ExamQuestions/Queries/GetById/GetByIdExamQuestionResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.ExamQuestions.Queries.GetById; 4 | 5 | public class GetByIdExamQuestionResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int ExamId { get; set; } 9 | public int QuestionId { get; set; } 10 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Lessons/Commands/Delete/DeletedLessonCommandValidator.cs: -------------------------------------------------------------------------------- 1 | using FluentValidation; 2 | 3 | namespace Application.Features.Lessons.Commands.Delete; 4 | 5 | public class DeleteLessonCommandValidator : AbstractValidator 6 | { 7 | public DeleteLessonCommandValidator() 8 | { 9 | RuleFor(c => c.Id).NotEmpty(); 10 | } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Surveys/Commands/Delete/DeletedSurveyCommandValidator.cs: -------------------------------------------------------------------------------- 1 | using FluentValidation; 2 | 3 | namespace Application.Features.Surveys.Commands.Delete; 4 | 5 | public class DeleteSurveyCommandValidator : AbstractValidator 6 | { 7 | public DeleteSurveyCommandValidator() 8 | { 9 | RuleFor(c => c.Id).NotEmpty(); 10 | } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Accounts/Commands/Delete/DeletedAccountCommandValidator.cs: -------------------------------------------------------------------------------- 1 | using FluentValidation; 2 | 3 | namespace Application.Features.Accounts.Commands.Delete; 4 | 5 | public class DeleteAccountCommandValidator : AbstractValidator 6 | { 7 | public DeleteAccountCommandValidator() 8 | { 9 | RuleFor(c => c.Id).NotEmpty(); 10 | } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Addresses/Commands/Delete/DeletedAddressCommandValidator.cs: -------------------------------------------------------------------------------- 1 | using FluentValidation; 2 | 3 | namespace Application.Features.Addresses.Commands.Delete; 4 | 5 | public class DeleteAddressCommandValidator : AbstractValidator 6 | { 7 | public DeleteAddressCommandValidator() 8 | { 9 | RuleFor(c => c.Id).NotEmpty(); 10 | } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Colleges/Commands/Delete/DeletedCollegeCommandValidator.cs: -------------------------------------------------------------------------------- 1 | using FluentValidation; 2 | 3 | namespace Application.Features.Colleges.Commands.Delete; 4 | 5 | public class DeleteCollegeCommandValidator : AbstractValidator 6 | { 7 | public DeleteCollegeCommandValidator() 8 | { 9 | RuleFor(c => c.Id).NotEmpty(); 10 | } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Countries/Commands/Delete/DeletedCountryCommandValidator.cs: -------------------------------------------------------------------------------- 1 | using FluentValidation; 2 | 3 | namespace Application.Features.Countries.Commands.Delete; 4 | 5 | public class DeleteCountryCommandValidator : AbstractValidator 6 | { 7 | public DeleteCountryCommandValidator() 8 | { 9 | RuleFor(c => c.Id).NotEmpty(); 10 | } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/ImageExtensions/Commands/Create/CreatedImageExtensionResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.ImageExtensions.Commands.Create; 4 | 5 | public class CreatedImageExtensionResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public bool IsActive { get; set; } 10 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/ImageExtensions/Commands/Update/UpdatedImageExtensionResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.ImageExtensions.Commands.Update; 4 | 5 | public class UpdatedImageExtensionResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public bool IsActive { get; set; } 10 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/ImageExtensions/Queries/GetById/GetByIdImageExtensionResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.ImageExtensions.Queries.GetById; 4 | 5 | public class GetByIdImageExtensionResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public bool IsActive { get; set; } 10 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/ImageExtensions/Queries/GetList/GetListImageExtensionListItemDto.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Dtos; 2 | 3 | namespace Application.Features.ImageExtensions.Queries.GetList; 4 | 5 | public class GetListImageExtensionListItemDto : IDto 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public bool IsActive { get; set; } 10 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Contracts/Commands/Delete/DeletedContractCommandValidator.cs: -------------------------------------------------------------------------------- 1 | using FluentValidation; 2 | 3 | namespace Application.Features.Contracts.Commands.Delete; 4 | 5 | public class DeleteContractCommandValidator : AbstractValidator 6 | { 7 | public DeleteContractCommandValidator() 8 | { 9 | RuleFor(c => c.Id).NotEmpty(); 10 | } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Districts/Commands/Delete/DeletedDistrictCommandValidator.cs: -------------------------------------------------------------------------------- 1 | using FluentValidation; 2 | 3 | namespace Application.Features.Districts.Commands.Delete; 4 | 5 | public class DeleteDistrictCommandValidator : AbstractValidator 6 | { 7 | public DeleteDistrictCommandValidator() 8 | { 9 | RuleFor(c => c.Id).NotEmpty(); 10 | } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/QuestionCategories/Queries/GetList/GetListQuestionCategoryListItemDto.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Dtos; 2 | 3 | namespace Application.Features.QuestionCategories.Queries.GetList; 4 | 5 | public class GetListQuestionCategoryListItemDto : IDto 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public int Priority { get; set; } 10 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Questions/Commands/Delete/DeletedQuestionCommandValidator.cs: -------------------------------------------------------------------------------- 1 | using FluentValidation; 2 | 3 | namespace Application.Features.Questions.Commands.Delete; 4 | 5 | public class DeleteQuestionCommandValidator : AbstractValidator 6 | { 7 | public DeleteQuestionCommandValidator() 8 | { 9 | RuleFor(c => c.Id).NotEmpty(); 10 | } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Recourses/Commands/Delete/DeletedRecourseCommandValidator.cs: -------------------------------------------------------------------------------- 1 | using FluentValidation; 2 | 3 | namespace Application.Features.Recourses.Commands.Delete; 4 | 5 | public class DeleteRecourseCommandValidator : AbstractValidator 6 | { 7 | public DeleteRecourseCommandValidator() 8 | { 9 | RuleFor(c => c.Id).NotEmpty(); 10 | } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Classrooms/Commands/Delete/DeletedClassroomCommandValidator.cs: -------------------------------------------------------------------------------- 1 | using FluentValidation; 2 | 3 | namespace Application.Features.Classrooms.Commands.Delete; 4 | 5 | public class DeleteClassroomCommandValidator : AbstractValidator 6 | { 7 | public DeleteClassroomCommandValidator() 8 | { 9 | RuleFor(c => c.Id).NotEmpty(); 10 | } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/QuestionCategories/Commands/Create/CreatedQuestionCategoryResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.QuestionCategories.Commands.Create; 4 | 5 | public class CreatedQuestionCategoryResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public int Priority { get; set; } 10 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/QuestionCategories/Commands/Update/UpdatedQuestionCategoryResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.QuestionCategories.Commands.Update; 4 | 5 | public class UpdatedQuestionCategoryResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public int Priority { get; set; } 10 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/QuestionCategories/Queries/GetById/GetByIdQuestionCategoryResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.QuestionCategories.Queries.GetById; 4 | 5 | public class GetByIdQuestionCategoryResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public int Priority { get; set; } 10 | } -------------------------------------------------------------------------------- /src/corePackages/Core.Persistence/Dynamic/DynamicQuery.cs: -------------------------------------------------------------------------------- 1 | namespace Core.Persistence.Dynamic; 2 | 3 | public class DynamicQuery 4 | { 5 | public IEnumerable? Sort { get; set; } 6 | public Filter? Filter { get; set; } 7 | 8 | public DynamicQuery() { } 9 | 10 | public DynamicQuery(IEnumerable? sort, Filter? filter) 11 | { 12 | Sort = sort; 13 | Filter = filter; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Countries/Queries/GetList/GetListCountryListItemDto.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Dtos; 2 | 3 | namespace Application.Features.Countries.Queries.GetList; 4 | 5 | public class GetListCountryListItemDto : IDto 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public int Priority { get; set; } 10 | public bool Visibility { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Capabilities/Commands/Delete/DeletedCapabilityCommandValidator.cs: -------------------------------------------------------------------------------- 1 | using FluentValidation; 2 | 3 | namespace Application.Features.Capabilities.Commands.Delete; 4 | 5 | public class DeleteCapabilityCommandValidator : AbstractValidator 6 | { 7 | public DeleteCapabilityCommandValidator() 8 | { 9 | RuleFor(c => c.Id).NotEmpty(); 10 | } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Countries/Commands/Create/CreatedCountryResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Countries.Commands.Create; 4 | 5 | public class CreatedCountryResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public int Priority { get; set; } 10 | public bool Visibility { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Countries/Commands/Update/UpdatedCountryResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Countries.Commands.Update; 4 | 5 | public class UpdatedCountryResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public int Priority { get; set; } 10 | public bool Visibility { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Countries/Queries/GetById/GetByIdCountryResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Countries.Queries.GetById; 4 | 5 | public class GetByIdCountryResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public int Priority { get; set; } 10 | public bool Visibility { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Experiences/Commands/Delete/DeletedExperienceCommandValidator.cs: -------------------------------------------------------------------------------- 1 | using FluentValidation; 2 | 3 | namespace Application.Features.Experiences.Commands.Delete; 4 | 5 | public class DeleteExperienceCommandValidator : AbstractValidator 6 | { 7 | public DeleteExperienceCommandValidator() 8 | { 9 | RuleFor(c => c.Id).NotEmpty(); 10 | } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/SurveyTypes/Commands/Delete/DeletedSurveyTypeCommandValidator.cs: -------------------------------------------------------------------------------- 1 | using FluentValidation; 2 | 3 | namespace Application.Features.SurveyTypes.Commands.Delete; 4 | 5 | public class DeleteSurveyTypeCommandValidator : AbstractValidator 6 | { 7 | public DeleteSurveyTypeCommandValidator() 8 | { 9 | RuleFor(c => c.Id).NotEmpty(); 10 | } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Answers/Queries/GetList/GetListAnswerListItemDto.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Dtos; 2 | 3 | namespace Application.Features.Answers.Queries.GetList; 4 | 5 | public class GetListAnswerListItemDto : IDto 6 | { 7 | public int Id { get; set; } 8 | public int QuestionId { get; set; } 9 | public string AnswerDetail { get; set; } 10 | public bool RightAnswerBool { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Certificates/Commands/Delete/DeletedCertificateCommandValidator.cs: -------------------------------------------------------------------------------- 1 | using FluentValidation; 2 | 3 | namespace Application.Features.Certificates.Commands.Delete; 4 | 5 | public class DeleteCertificateCommandValidator : AbstractValidator 6 | { 7 | public DeleteCertificateCommandValidator() 8 | { 9 | RuleFor(c => c.Id).NotEmpty(); 10 | } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Certificates/Queries/GetList/GetListCertificateListItemDto.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Dtos; 2 | 3 | namespace Application.Features.Certificates.Queries.GetList; 4 | 5 | public class GetListCertificateListItemDto : IDto 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public string Path { get; set; } 10 | public int Priority { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/LearningPathCategories/Queries/GetList/GetListLearningPathCategoryListItemDto.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Dtos; 2 | 3 | namespace Application.Features.LearningPathCategories.Queries.GetList; 4 | 5 | public class GetListLearningPathCategoryListItemDto : IDto 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public bool IsActive { get; set; } 10 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/SurveyTypes/Queries/GetList/GetListSurveyTypeListItemDto.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Dtos; 2 | 3 | namespace Application.Features.SurveyTypes.Queries.GetList; 4 | 5 | public class GetListSurveyTypeListItemDto : IDto 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public int Priority { get; set; } 10 | public bool Visibility { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/UserOperationClaims/Constants/UserOperationClaimsMessages.cs: -------------------------------------------------------------------------------- 1 | namespace Application.Features.UserOperationClaims.Constants; 2 | 3 | public static class UserOperationClaimsMessages 4 | { 5 | public const string UserOperationClaimNotExists = "The user hasn't the operation claim."; 6 | public const string UserOperationClaimAlreadyExists = "The user has the operation claim already."; 7 | } 8 | -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/UserOperationClaims/Queries/GetList/GetListUserOperationClaimListItemDto.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Dtos; 2 | 3 | namespace Application.Features.UserOperationClaims.Queries.GetList; 4 | 5 | public class GetListUserOperationClaimListItemDto : IDto 6 | { 7 | public int Id { get; set; } 8 | public int UserId { get; set; } 9 | public int OperationClaimId { get; set; } 10 | } 11 | -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Announcements/Commands/Delete/DeletedAnnouncementCommandValidator.cs: -------------------------------------------------------------------------------- 1 | using FluentValidation; 2 | 3 | namespace Application.Features.Announcements.Commands.Delete; 4 | 5 | public class DeleteAnnouncementCommandValidator : AbstractValidator 6 | { 7 | public DeleteAnnouncementCommandValidator() 8 | { 9 | RuleFor(c => c.Id).NotEmpty(); 10 | } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Answers/Commands/Create/CreatedAnswerResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Answers.Commands.Create; 4 | 5 | public class CreatedAnswerResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int QuestionId { get; set; } 9 | public string AnswerDetail { get; set; } 10 | public bool RightAnswerBool { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Answers/Commands/Update/UpdatedAnswerResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Answers.Commands.Update; 4 | 5 | public class UpdatedAnswerResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int QuestionId { get; set; } 9 | public string AnswerDetail { get; set; } 10 | public bool RightAnswerBool { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Answers/Queries/GetById/GetByIdAnswerResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Answers.Queries.GetById; 4 | 5 | public class GetByIdAnswerResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int QuestionId { get; set; } 9 | public string AnswerDetail { get; set; } 10 | public bool RightAnswerBool { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Auth/Profiles/MappingProfiles.cs: -------------------------------------------------------------------------------- 1 | using Application.Features.Auth.Commands.RevokeToken; 2 | using AutoMapper; 3 | using Core.Security.Entities; 4 | 5 | namespace Application.Features.Auth.Profiles; 6 | 7 | public class MappingProfiles : Profile 8 | { 9 | public MappingProfiles() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Capabilities/Queries/GetList/GetListCapabilityListItemDto.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Dtos; 2 | 3 | namespace Application.Features.Capabilities.Queries.GetList; 4 | 5 | public class GetListCapabilityListItemDto : IDto 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public int Priority { get; set; } 10 | public bool Visibility { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Certificates/Commands/Create/CreatedCertificateResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Certificates.Commands.Create; 4 | 5 | public class CreatedCertificateResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public string Path { get; set; } 10 | public int Priority { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Certificates/Commands/Update/UpdatedCertificateResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Certificates.Commands.Update; 4 | 5 | public class UpdatedCertificateResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public string Path { get; set; } 10 | public int Priority { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Certificates/Queries/GetById/GetByIdCertificateResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Certificates.Queries.GetById; 4 | 5 | public class GetByIdCertificateResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public string Path { get; set; } 10 | public int Priority { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Classrooms/Queries/GetList/GetListClassroomListItemDto.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Dtos; 2 | 3 | namespace Application.Features.Classrooms.Queries.GetList; 4 | 5 | public class GetListClassroomListItemDto : IDto 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public byte MaximumCapacity { get; set; } 10 | public bool IsActive { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/ContractTypes/Commands/Delete/DeletedContractTypeCommandValidator.cs: -------------------------------------------------------------------------------- 1 | using FluentValidation; 2 | 3 | namespace Application.Features.ContractTypes.Commands.Delete; 4 | 5 | public class DeleteContractTypeCommandValidator : AbstractValidator 6 | { 7 | public DeleteContractTypeCommandValidator() 8 | { 9 | RuleFor(c => c.Id).NotEmpty(); 10 | } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/ExamQuestions/Commands/Delete/DeletedExamQuestionCommandValidator.cs: -------------------------------------------------------------------------------- 1 | using FluentValidation; 2 | 3 | namespace Application.Features.ExamQuestions.Commands.Delete; 4 | 5 | public class DeleteExamQuestionCommandValidator : AbstractValidator 6 | { 7 | public DeleteExamQuestionCommandValidator() 8 | { 9 | RuleFor(c => c.Id).NotEmpty(); 10 | } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/LearningPathCategories/Commands/Create/CreatedLearningPathCategoryResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.LearningPathCategories.Commands.Create; 4 | 5 | public class CreatedLearningPathCategoryResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public bool IsActive { get; set; } 10 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/LearningPathCategories/Commands/Update/UpdatedLearningPathCategoryResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.LearningPathCategories.Commands.Update; 4 | 5 | public class UpdatedLearningPathCategoryResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public bool IsActive { get; set; } 10 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/LearningPathCategories/Queries/GetById/GetByIdLearningPathCategoryResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.LearningPathCategories.Queries.GetById; 4 | 5 | public class GetByIdLearningPathCategoryResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public bool IsActive { get; set; } 10 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/LearningPaths/Commands/Delete/DeletedLearningPathCommandValidator.cs: -------------------------------------------------------------------------------- 1 | using FluentValidation; 2 | 3 | namespace Application.Features.LearningPaths.Commands.Delete; 4 | 5 | public class DeleteLearningPathCommandValidator : AbstractValidator 6 | { 7 | public DeleteLearningPathCommandValidator() 8 | { 9 | RuleFor(c => c.Id).NotEmpty(); 10 | } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Organizations/Commands/Delete/DeletedOrganizationCommandValidator.cs: -------------------------------------------------------------------------------- 1 | using FluentValidation; 2 | 3 | namespace Application.Features.Organizations.Commands.Delete; 4 | 5 | public class DeleteOrganizationCommandValidator : AbstractValidator 6 | { 7 | public DeleteOrganizationCommandValidator() 8 | { 9 | RuleFor(c => c.Id).NotEmpty(); 10 | } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/RecourseSteps/Commands/Delete/DeletedRecourseStepCommandValidator.cs: -------------------------------------------------------------------------------- 1 | using FluentValidation; 2 | 3 | namespace Application.Features.RecourseSteps.Commands.Delete; 4 | 5 | public class DeleteRecourseStepCommandValidator : AbstractValidator 6 | { 7 | public DeleteRecourseStepCommandValidator() 8 | { 9 | RuleFor(c => c.Id).NotEmpty(); 10 | } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/SurveyTypes/Commands/Create/CreatedSurveyTypeResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.SurveyTypes.Commands.Create; 4 | 5 | public class CreatedSurveyTypeResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public int Priority { get; set; } 10 | public bool Visibility { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/SurveyTypes/Commands/Update/UpdatedSurveyTypeResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.SurveyTypes.Commands.Update; 4 | 5 | public class UpdatedSurveyTypeResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public int Priority { get; set; } 10 | public bool Visibility { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/SurveyTypes/Queries/GetById/GetByIdSurveyTypeResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.SurveyTypes.Queries.GetById; 4 | 5 | public class GetByIdSurveyTypeResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public int Priority { get; set; } 10 | public bool Visibility { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/UserOperationClaims/Commands/Create/CreatedUserOperationClaimResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.UserOperationClaims.Commands.Create; 4 | 5 | public class CreatedUserOperationClaimResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int UserId { get; set; } 9 | public int OperationClaimId { get; set; } 10 | } 11 | -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/UserOperationClaims/Commands/Update/UpdatedUserOperationClaimResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.UserOperationClaims.Commands.Update; 4 | 5 | public class UpdatedUserOperationClaimResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int UserId { get; set; } 9 | public int OperationClaimId { get; set; } 10 | } 11 | -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/UserOperationClaims/Queries/GetById/GetByIdUserOperationClaimResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.UserOperationClaims.Queries.GetById; 4 | 5 | public class GetByIdUserOperationClaimResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int UserId { get; set; } 9 | public int OperationClaimId { get; set; } 10 | } 11 | -------------------------------------------------------------------------------- /src/corePackages/Core.Persistence/Dynamic/Sort.cs: -------------------------------------------------------------------------------- 1 | namespace Core.Persistence.Dynamic; 2 | 3 | public class Sort 4 | { 5 | public string Field { get; set; } 6 | public string Dir { get; set; } 7 | 8 | public Sort() 9 | { 10 | Field = string.Empty; 11 | Dir = string.Empty; 12 | } 13 | 14 | public Sort(string field, string dir) 15 | { 16 | Field = field; 17 | Dir = dir; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountCourses/Commands/Delete/DeletedAccountCourseCommandValidator.cs: -------------------------------------------------------------------------------- 1 | using FluentValidation; 2 | 3 | namespace Application.Features.AccountCourses.Commands.Delete; 4 | 5 | public class DeleteAccountCourseCommandValidator : AbstractValidator 6 | { 7 | public DeleteAccountCourseCommandValidator() 8 | { 9 | RuleFor(c => c.Id).NotEmpty(); 10 | } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountLessons/Commands/Delete/DeletedAccountLessonCommandValidator.cs: -------------------------------------------------------------------------------- 1 | using FluentValidation; 2 | 3 | namespace Application.Features.AccountLessons.Commands.Delete; 4 | 5 | public class DeleteAccountLessonCommandValidator : AbstractValidator 6 | { 7 | public DeleteAccountLessonCommandValidator() 8 | { 9 | RuleFor(c => c.Id).NotEmpty(); 10 | } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Capabilities/Commands/Create/CreatedCapabilityResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Capabilities.Commands.Create; 4 | 5 | public class CreatedCapabilityResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public int Priority { get; set; } 10 | public bool Visibility { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Capabilities/Commands/Update/UpdatedCapabilityResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Capabilities.Commands.Update; 4 | 5 | public class UpdatedCapabilityResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public int Priority { get; set; } 10 | public bool Visibility { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Capabilities/Queries/GetById/GetByIdCapabilityResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Capabilities.Queries.GetById; 4 | 5 | public class GetByIdCapabilityResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public int Priority { get; set; } 10 | public bool Visibility { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/ClassroomExams/Commands/Delete/DeletedClassroomExamCommandValidator.cs: -------------------------------------------------------------------------------- 1 | using FluentValidation; 2 | 3 | namespace Application.Features.ClassroomExams.Commands.Delete; 4 | 5 | public class DeleteClassroomExamCommandValidator : AbstractValidator 6 | { 7 | public DeleteClassroomExamCommandValidator() 8 | { 9 | RuleFor(c => c.Id).NotEmpty(); 10 | } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Classrooms/Commands/Create/CreatedClassroomResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Classrooms.Commands.Create; 4 | 5 | public class CreatedClassroomResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public byte MaximumCapacity { get; set; } 10 | public bool IsActive { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Classrooms/Commands/Update/UpdatedClassroomResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Classrooms.Commands.Update; 4 | 5 | public class UpdatedClassroomResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public byte MaximumCapacity { get; set; } 10 | public bool IsActive { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Classrooms/Queries/GetById/GetByIdClassroomResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Classrooms.Queries.GetById; 4 | 5 | public class GetByIdClassroomResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public byte MaximumCapacity { get; set; } 10 | public bool IsActive { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Questions/Queries/GetList/GetListQuestionListItemDto.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Dtos; 2 | 3 | namespace Application.Features.Questions.Queries.GetList; 4 | 5 | public class GetListQuestionListItemDto : IDto 6 | { 7 | public int Id { get; set; } 8 | public int QuestionCategoryId { get; set; } 9 | public string QuestionDetail { get; set; } 10 | public bool IsActive { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/RecourseSteps/Queries/GetList/GetListRecourseStepListItemDto.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Dtos; 2 | 3 | namespace Application.Features.RecourseSteps.Queries.GetList; 4 | 5 | public class GetListRecourseStepListItemDto : IDto 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public int Priority { get; set; } 10 | public bool Visibility { get; set; } 11 | } -------------------------------------------------------------------------------- /src/corePackages/Core.CrossCuttingConcerns/Exceptions/Extensions/ProblemDetailsExtensions.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore.Mvc; 2 | using System.Text.Json; 3 | 4 | namespace Core.CrossCuttingConcerns.Exceptions.Extensions; 5 | 6 | internal static class ProblemDetailsExtensions 7 | { 8 | public static string AsJson(this TProblemDetail details) 9 | where TProblemDetail : ProblemDetails => JsonSerializer.Serialize(details); 10 | } 11 | -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountCourses/Queries/GetList/GetListAccountCourseListItemDto.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Dtos; 2 | 3 | namespace Application.Features.AccountCourses.Queries.GetList; 4 | 5 | public class GetListAccountCourseListItemDto : IDto 6 | { 7 | public int Id { get; set; } 8 | public int CourseId { get; set; } 9 | public int AccountId { get; set; } 10 | public bool IsActive { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/ClassroomExams/Queries/GetList/GetListClassroomExamListItemDto.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Dtos; 2 | 3 | namespace Application.Features.ClassroomExams.Queries.GetList; 4 | 5 | public class GetListClassroomExamListItemDto : IDto 6 | { 7 | public int Id { get; set; } 8 | public int ClassroomId { get; set; } 9 | public int ExamId { get; set; } 10 | public bool IsActive { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/ImageExtensions/Commands/Delete/DeletedImageExtensionCommandValidator.cs: -------------------------------------------------------------------------------- 1 | using FluentValidation; 2 | 3 | namespace Application.Features.ImageExtensions.Commands.Delete; 4 | 5 | public class DeleteImageExtensionCommandValidator : AbstractValidator 6 | { 7 | public DeleteImageExtensionCommandValidator() 8 | { 9 | RuleFor(c => c.Id).NotEmpty(); 10 | } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Questions/Commands/Create/CreatedQuestionResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Questions.Commands.Create; 4 | 5 | public class CreatedQuestionResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int QuestionCategoryId { get; set; } 9 | public string QuestionDetail { get; set; } 10 | public bool IsActive { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Questions/Commands/Update/UpdatedQuestionResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Questions.Commands.Update; 4 | 5 | public class UpdatedQuestionResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int QuestionCategoryId { get; set; } 9 | public string QuestionDetail { get; set; } 10 | public bool IsActive { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Questions/Queries/GetById/GetByIdQuestionResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Questions.Queries.GetById; 4 | 5 | public class GetByIdQuestionResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int QuestionCategoryId { get; set; } 9 | public string QuestionDetail { get; set; } 10 | public bool IsActive { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/RecourseDetails/Commands/Delete/DeletedRecourseDetailCommandValidator.cs: -------------------------------------------------------------------------------- 1 | using FluentValidation; 2 | 3 | namespace Application.Features.RecourseDetails.Commands.Delete; 4 | 5 | public class DeleteRecourseDetailCommandValidator : AbstractValidator 6 | { 7 | public DeleteRecourseDetailCommandValidator() 8 | { 9 | RuleFor(c => c.Id).NotEmpty(); 10 | } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/RecourseSteps/Commands/Create/CreatedRecourseStepResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.RecourseSteps.Commands.Create; 4 | 5 | public class CreatedRecourseStepResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public int Priority { get; set; } 10 | public bool Visibility { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/RecourseSteps/Commands/Update/UpdatedRecourseStepResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.RecourseSteps.Commands.Update; 4 | 5 | public class UpdatedRecourseStepResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public int Priority { get; set; } 10 | public bool Visibility { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/RecourseSteps/Queries/GetById/GetByIdRecourseStepResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.RecourseSteps.Queries.GetById; 4 | 5 | public class GetByIdRecourseStepResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public int Priority { get; set; } 10 | public bool Visibility { get; set; } 11 | } -------------------------------------------------------------------------------- /src/corePackages/Core.Mailing/ToEmail.cs: -------------------------------------------------------------------------------- 1 | namespace Core.Mailing; 2 | 3 | public class ToEmail 4 | { 5 | public string Email { get; set; } 6 | public string FullName { get; set; } 7 | 8 | public ToEmail() 9 | { 10 | Email = string.Empty; 11 | FullName = string.Empty; 12 | } 13 | 14 | public ToEmail(string email, string fullName) 15 | { 16 | Email = email; 17 | FullName = fullName; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/corePackages/Core.Security/JWT/AccessToken.cs: -------------------------------------------------------------------------------- 1 | namespace Core.Security.JWT; 2 | 3 | public class AccessToken 4 | { 5 | public string Token { get; set; } 6 | public DateTime Expiration { get; set; } 7 | 8 | public AccessToken() 9 | { 10 | Token = string.Empty; 11 | } 12 | 13 | public AccessToken(string token, DateTime expiration) 14 | { 15 | Token = token; 16 | Expiration = expiration; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountCourses/Commands/Create/CreatedAccountCourseResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.AccountCourses.Commands.Create; 4 | 5 | public class CreatedAccountCourseResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int CourseId { get; set; } 9 | public int AccountId { get; set; } 10 | public bool IsActive { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountCourses/Commands/Update/UpdatedAccountCourseResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.AccountCourses.Commands.Update; 4 | 5 | public class UpdatedAccountCourseResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int CourseId { get; set; } 9 | public int AccountId { get; set; } 10 | public bool IsActive { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountCourses/Queries/GetById/GetByIdAccountCourseResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.AccountCourses.Queries.GetById; 4 | 5 | public class GetByIdAccountCourseResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int CourseId { get; set; } 9 | public int AccountId { get; set; } 10 | public bool IsActive { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Auth/Constants/AddressConstants.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | namespace Application.Features.Auth.Constants 3 | { 4 | public static class AddressConstants 5 | { 6 | public const int DefaultCountryId = 1; 7 | public const int DefaultCityId = 1; 8 | public const int DefaultDistrictId = 1; 9 | public const string DefaultAddressDetail = ""; 10 | 11 | } 12 | } 13 | 14 | -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/ClassroomExams/Commands/Create/CreatedClassroomExamResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.ClassroomExams.Commands.Create; 4 | 5 | public class CreatedClassroomExamResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int ClassroomId { get; set; } 9 | public int ExamId { get; set; } 10 | public bool IsActive { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/ClassroomExams/Commands/Update/UpdatedClassroomExamResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.ClassroomExams.Commands.Update; 4 | 5 | public class UpdatedClassroomExamResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int ClassroomId { get; set; } 9 | public int ExamId { get; set; } 10 | public bool IsActive { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/ClassroomExams/Queries/GetById/GetByIdClassroomExamResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.ClassroomExams.Queries.GetById; 4 | 5 | public class GetByIdClassroomExamResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int ClassroomId { get; set; } 9 | public int ExamId { get; set; } 10 | public bool IsActive { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/CourseCategories/Commands/Delete/DeletedCourseCategoryCommandValidator.cs: -------------------------------------------------------------------------------- 1 | using FluentValidation; 2 | 3 | namespace Application.Features.CourseCategories.Commands.Delete; 4 | 5 | public class DeleteCourseCategoryCommandValidator : AbstractValidator 6 | { 7 | public DeleteCourseCategoryCommandValidator() 8 | { 9 | RuleFor(c => c.Id).NotEmpty(); 10 | } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/CourseCategories/Queries/GetList/GetListCourseCategoryListItemDto.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Dtos; 2 | 3 | namespace Application.Features.CourseCategories.Queries.GetList; 4 | 5 | public class GetListCourseCategoryListItemDto : IDto 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public int Priority { get; set; } 10 | public bool Visibility { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/ForeignLanguages/Queries/GetList/GetListForeignLanguageListItemDto.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Dtos; 2 | 3 | namespace Application.Features.ForeignLanguages.Queries.GetList; 4 | 5 | public class GetListForeignLanguageListItemDto : IDto 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public int Priority { get; set; } 10 | public bool Visibility { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/RecourseDetails/Queries/GetList/GetListRecourseDetailListItemDto.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Dtos; 2 | 3 | namespace Application.Features.RecourseDetails.Queries.GetList; 4 | 5 | public class GetListRecourseDetailListItemDto : IDto 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public string Priority { get; set; } 10 | public bool Visibility { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Persistence/Repositories/CityRepository.cs: -------------------------------------------------------------------------------- 1 | using Application.Services.Repositories; 2 | using Domain.Entities; 3 | using Core.Persistence.Repositories; 4 | using Persistence.Contexts; 5 | 6 | namespace Persistence.Repositories; 7 | 8 | public class CityRepository : EfRepositoryBase, ICityRepository 9 | { 10 | public CityRepository(BaseDbContext context) : base(context) 11 | { 12 | } 13 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Persistence/Repositories/ExamRepository.cs: -------------------------------------------------------------------------------- 1 | using Application.Services.Repositories; 2 | using Domain.Entities; 3 | using Core.Persistence.Repositories; 4 | using Persistence.Contexts; 5 | 6 | namespace Persistence.Repositories; 7 | 8 | public class ExamRepository : EfRepositoryBase, IExamRepository 9 | { 10 | public ExamRepository(BaseDbContext context) : base(context) 11 | { 12 | } 13 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountContracts/Commands/Delete/DeletedAccountContractCommandValidator.cs: -------------------------------------------------------------------------------- 1 | using FluentValidation; 2 | 3 | namespace Application.Features.AccountContracts.Commands.Delete; 4 | 5 | public class DeleteAccountContractCommandValidator : AbstractValidator 6 | { 7 | public DeleteAccountContractCommandValidator() 8 | { 9 | RuleFor(c => c.Id).NotEmpty(); 10 | } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountContracts/Queries/GetList/GetListAccountContractListItemDto.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Dtos; 2 | 3 | namespace Application.Features.AccountContracts.Queries.GetList; 4 | 5 | public class GetListAccountContractListItemDto : IDto 6 | { 7 | public int Id { get; set; } 8 | public int AccountId { get; set; } 9 | public int ContractId { get; set; } 10 | public bool IsAccept { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountRecourses/Commands/Delete/DeletedAccountRecourseCommandValidator.cs: -------------------------------------------------------------------------------- 1 | using FluentValidation; 2 | 3 | namespace Application.Features.AccountRecourses.Commands.Delete; 4 | 5 | public class DeleteAccountRecourseCommandValidator : AbstractValidator 6 | { 7 | public DeleteAccountRecourseCommandValidator() 8 | { 9 | RuleFor(c => c.Id).NotEmpty(); 10 | } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AnnouncementTypes/Queries/GetList/GetListAnnouncementTypeListItemDto.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Dtos; 2 | 3 | namespace Application.Features.AnnouncementTypes.Queries.GetList; 4 | 5 | public class GetListAnnouncementTypeListItemDto : IDto 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public int Priority { get; set; } 10 | public bool Visibility { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Cities/Queries/GetList/GetListCityListItemDto.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Dtos; 2 | 3 | namespace Application.Features.Cities.Queries.GetList; 4 | 5 | public class GetListCityListItemDto : IDto 6 | { 7 | public int Id { get; set; } 8 | public int CountryId { get; set; } 9 | public string Name { get; set; } 10 | public int Priority { get; set; } 11 | public bool Visibility { get; set; } 12 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/CourseCategories/Commands/Create/CreatedCourseCategoryResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.CourseCategories.Commands.Create; 4 | 5 | public class CreatedCourseCategoryResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public int Priority { get; set; } 10 | public bool Visibility { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/CourseCategories/Commands/Update/UpdatedCourseCategoryResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.CourseCategories.Commands.Update; 4 | 5 | public class UpdatedCourseCategoryResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public int Priority { get; set; } 10 | public bool Visibility { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/CourseCategories/Queries/GetById/GetByIdCourseCategoryResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.CourseCategories.Queries.GetById; 4 | 5 | public class GetByIdCourseCategoryResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public int Priority { get; set; } 10 | public bool Visibility { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/EducationPrograms/Queries/GetList/GetListEducationProgramListItemDto.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Dtos; 2 | 3 | namespace Application.Features.EducationPrograms.Queries.GetList; 4 | 5 | public class GetListEducationProgramListItemDto : IDto 6 | { 7 | public int Id { get; set; } 8 | public int CollegeId { get; set; } 9 | public string Name { get; set; } 10 | public bool Visibility { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/ForeignLanguages/Commands/Create/CreatedForeignLanguageResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.ForeignLanguages.Commands.Create; 4 | 5 | public class CreatedForeignLanguageResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public int Priority { get; set; } 10 | public bool Visibility { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/ForeignLanguages/Commands/Delete/DeletedForeignLanguageCommandValidator.cs: -------------------------------------------------------------------------------- 1 | using FluentValidation; 2 | 3 | namespace Application.Features.ForeignLanguages.Commands.Delete; 4 | 5 | public class DeleteForeignLanguageCommandValidator : AbstractValidator 6 | { 7 | public DeleteForeignLanguageCommandValidator() 8 | { 9 | RuleFor(c => c.Id).NotEmpty(); 10 | } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/ForeignLanguages/Commands/Update/UpdatedForeignLanguageResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.ForeignLanguages.Commands.Update; 4 | 5 | public class UpdatedForeignLanguageResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public int Priority { get; set; } 10 | public bool Visibility { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/ForeignLanguages/Queries/GetById/GetByIdForeignLanguageResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.ForeignLanguages.Queries.GetById; 4 | 5 | public class GetByIdForeignLanguageResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public int Priority { get; set; } 10 | public bool Visibility { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/OrganizationTypes/Queries/GetList/GetListOrganizationTypeListItemDto.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Dtos; 2 | 3 | namespace Application.Features.OrganizationTypes.Queries.GetList; 4 | 5 | public class GetListOrganizationTypeListItemDto : IDto 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public int Priority { get; set; } 10 | public bool Visibility { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/RecourseDetails/Commands/Create/CreatedRecourseDetailResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.RecourseDetails.Commands.Create; 4 | 5 | public class CreatedRecourseDetailResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public string Priority { get; set; } 10 | public bool Visibility { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/RecourseDetails/Commands/Update/UpdatedRecourseDetailResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.RecourseDetails.Commands.Update; 4 | 5 | public class UpdatedRecourseDetailResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public string Priority { get; set; } 10 | public bool Visibility { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/RecourseDetails/Queries/GetById/GetByIdRecourseDetailResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.RecourseDetails.Queries.GetById; 4 | 5 | public class GetByIdRecourseDetailResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public string Priority { get; set; } 10 | public bool Visibility { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Persistence/Repositories/ImageRepository.cs: -------------------------------------------------------------------------------- 1 | using Application.Services.Repositories; 2 | using Domain.Entities; 3 | using Core.Persistence.Repositories; 4 | using Persistence.Contexts; 5 | 6 | namespace Persistence.Repositories; 7 | 8 | public class ImageRepository : EfRepositoryBase, IImageRepository 9 | { 10 | public ImageRepository(BaseDbContext context) : base(context) 11 | { 12 | } 13 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountClassrooms/Commands/Delete/DeletedAccountClassroomCommandValidator.cs: -------------------------------------------------------------------------------- 1 | using FluentValidation; 2 | 3 | namespace Application.Features.AccountClassrooms.Commands.Delete; 4 | 5 | public class DeleteAccountClassroomCommandValidator : AbstractValidator 6 | { 7 | public DeleteAccountClassroomCommandValidator() 8 | { 9 | RuleFor(c => c.Id).NotEmpty(); 10 | } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountClassrooms/Queries/GetList/GetListAccountClassroomListItemDto.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Dtos; 2 | 3 | namespace Application.Features.AccountClassrooms.Queries.GetList; 4 | 5 | public class GetListAccountClassroomListItemDto : IDto 6 | { 7 | public int Id { get; set; } 8 | public int AccountId { get; set; } 9 | public int ClassroomId { get; set; } 10 | public bool IsActive { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountContracts/Commands/Create/CreatedAccountContractResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.AccountContracts.Commands.Create; 4 | 5 | public class CreatedAccountContractResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int AccountId { get; set; } 9 | public int ContractId { get; set; } 10 | public bool IsAccept { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountContracts/Commands/Update/UpdatedAccountContractResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.AccountContracts.Commands.Update; 4 | 5 | public class UpdatedAccountContractResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int AccountId { get; set; } 9 | public int ContractId { get; set; } 10 | public bool IsAccept { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountContracts/Queries/GetById/GetByIdAccountContractResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.AccountContracts.Queries.GetById; 4 | 5 | public class GetByIdAccountContractResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int AccountId { get; set; } 9 | public int ContractId { get; set; } 10 | public bool IsAccept { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountRecourses/Queries/GetList/GetListAccountRecourseListItemDto.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Dtos; 2 | 3 | namespace Application.Features.AccountRecourses.Queries.GetList; 4 | 5 | public class GetListAccountRecourseListItemDto : IDto 6 | { 7 | public int Id { get; set; } 8 | public int AccountId { get; set; } 9 | public int RecourseId { get; set; } 10 | public int RecourseStepId { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AnnouncementTypes/Commands/Create/CreatedAnnouncementTypeResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.AnnouncementTypes.Commands.Create; 4 | 5 | public class CreatedAnnouncementTypeResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public int Priority { get; set; } 10 | public bool Visibility { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AnnouncementTypes/Commands/Delete/DeletedAnnouncementTypeCommandValidator.cs: -------------------------------------------------------------------------------- 1 | using FluentValidation; 2 | 3 | namespace Application.Features.AnnouncementTypes.Commands.Delete; 4 | 5 | public class DeleteAnnouncementTypeCommandValidator : AbstractValidator 6 | { 7 | public DeleteAnnouncementTypeCommandValidator() 8 | { 9 | RuleFor(c => c.Id).NotEmpty(); 10 | } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AnnouncementTypes/Commands/Update/UpdatedAnnouncementTypeResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.AnnouncementTypes.Commands.Update; 4 | 5 | public class UpdatedAnnouncementTypeResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public int Priority { get; set; } 10 | public bool Visibility { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AnnouncementTypes/Queries/GetById/GetByIdAnnouncementTypeResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.AnnouncementTypes.Queries.GetById; 4 | 5 | public class GetByIdAnnouncementTypeResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public int Priority { get; set; } 10 | public bool Visibility { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Cities/Commands/Create/CreatedCityResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Cities.Commands.Create; 4 | 5 | public class CreatedCityResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int CountryId { get; set; } 9 | public string Name { get; set; } 10 | public int Priority { get; set; } 11 | public bool Visibility { get; set; } 12 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Cities/Commands/Update/UpdatedCityResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Cities.Commands.Update; 4 | 5 | public class UpdatedCityResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int CountryId { get; set; } 9 | public string Name { get; set; } 10 | public int Priority { get; set; } 11 | public bool Visibility { get; set; } 12 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Cities/Queries/GetById/GetByIdCityResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Cities.Queries.GetById; 4 | 5 | public class GetByIdCityResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int CountryId { get; set; } 9 | public string Name { get; set; } 10 | public int Priority { get; set; } 11 | public bool Visibility { get; set; } 12 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/EducationPrograms/Commands/Create/CreatedEducationProgramResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.EducationPrograms.Commands.Create; 4 | 5 | public class CreatedEducationProgramResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int CollegeId { get; set; } 9 | public string Name { get; set; } 10 | public bool Visibility { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/EducationPrograms/Commands/Delete/DeletedEducationProgramCommandValidator.cs: -------------------------------------------------------------------------------- 1 | using FluentValidation; 2 | 3 | namespace Application.Features.EducationPrograms.Commands.Delete; 4 | 5 | public class DeleteEducationProgramCommandValidator : AbstractValidator 6 | { 7 | public DeleteEducationProgramCommandValidator() 8 | { 9 | RuleFor(c => c.Id).NotEmpty(); 10 | } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/EducationPrograms/Commands/Update/UpdatedEducationProgramResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.EducationPrograms.Commands.Update; 4 | 5 | public class UpdatedEducationProgramResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int CollegeId { get; set; } 9 | public string Name { get; set; } 10 | public bool Visibility { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/EducationPrograms/Queries/GetById/GetByIdEducationProgramResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.EducationPrograms.Queries.GetById; 4 | 5 | public class GetByIdEducationProgramResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int CollegeId { get; set; } 9 | public string Name { get; set; } 10 | public bool Visibility { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/GraduationStatuses/Commands/Create/CreatedGraduationStatusResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.GraduationStatuses.Commands.Create; 4 | 5 | public class CreatedGraduationStatusResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public int Priority { get; set; } 10 | public bool Visibility { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/GraduationStatuses/Commands/Delete/DeletedGraduationStatusCommandValidator.cs: -------------------------------------------------------------------------------- 1 | using FluentValidation; 2 | 3 | namespace Application.Features.GraduationStatuses.Commands.Delete; 4 | 5 | public class DeleteGraduationStatusCommandValidator : AbstractValidator 6 | { 7 | public DeleteGraduationStatusCommandValidator() 8 | { 9 | RuleFor(c => c.Id).NotEmpty(); 10 | } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/GraduationStatuses/Commands/Update/UpdatedGraduationStatusResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.GraduationStatuses.Commands.Update; 4 | 5 | public class UpdatedGraduationStatusResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public int Priority { get; set; } 10 | public bool Visibility { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/GraduationStatuses/Queries/GetById/GetByIdGraduationStatusResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.GraduationStatuses.Queries.GetById; 4 | 5 | public class GetByIdGraduationStatusResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public int Priority { get; set; } 10 | public bool Visibility { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/GraduationStatuses/Queries/GetList/GetListGraduationStatusListItemDto.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Dtos; 2 | 3 | namespace Application.Features.GraduationStatuses.Queries.GetList; 4 | 5 | public class GetListGraduationStatusListItemDto : IDto 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public int Priority { get; set; } 10 | public bool Visibility { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Images/Queries/GetList/GetListImageListItemDto.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Dtos; 2 | 3 | namespace Application.Features.Images.Queries.GetList; 4 | 5 | public class GetListImageListItemDto : IDto 6 | { 7 | public int Id { get; set; } 8 | public int ImageExtensionId { get; set; } 9 | public string Name { get; set; } 10 | public string Url { get; set; } 11 | public bool IsActive { get; set; } 12 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/OrganizationTypes/Commands/Create/CreatedOrganizationTypeResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.OrganizationTypes.Commands.Create; 4 | 5 | public class CreatedOrganizationTypeResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public int Priority { get; set; } 10 | public bool Visibility { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/OrganizationTypes/Commands/Delete/DeletedOrganizationTypeCommandValidator.cs: -------------------------------------------------------------------------------- 1 | using FluentValidation; 2 | 3 | namespace Application.Features.OrganizationTypes.Commands.Delete; 4 | 5 | public class DeleteOrganizationTypeCommandValidator : AbstractValidator 6 | { 7 | public DeleteOrganizationTypeCommandValidator() 8 | { 9 | RuleFor(c => c.Id).NotEmpty(); 10 | } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/OrganizationTypes/Commands/Update/UpdatedOrganizationTypeResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.OrganizationTypes.Commands.Update; 4 | 5 | public class UpdatedOrganizationTypeResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public int Priority { get; set; } 10 | public bool Visibility { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/OrganizationTypes/Queries/GetById/GetByIdOrganizationTypeResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.OrganizationTypes.Queries.GetById; 4 | 5 | public class GetByIdOrganizationTypeResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public int Priority { get; set; } 10 | public bool Visibility { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/QuestionCategories/Commands/Delete/DeletedQuestionCategoryCommandValidator.cs: -------------------------------------------------------------------------------- 1 | using FluentValidation; 2 | 3 | namespace Application.Features.QuestionCategories.Commands.Delete; 4 | 5 | public class DeleteQuestionCategoryCommandValidator : AbstractValidator 6 | { 7 | public DeleteQuestionCategoryCommandValidator() 8 | { 9 | RuleFor(c => c.Id).NotEmpty(); 10 | } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Persistence/Repositories/AnswerRepository.cs: -------------------------------------------------------------------------------- 1 | using Application.Services.Repositories; 2 | using Domain.Entities; 3 | using Core.Persistence.Repositories; 4 | using Persistence.Contexts; 5 | 6 | namespace Persistence.Repositories; 7 | 8 | public class AnswerRepository : EfRepositoryBase, IAnswerRepository 9 | { 10 | public AnswerRepository(BaseDbContext context) : base(context) 11 | { 12 | } 13 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Persistence/Repositories/CourseRepository.cs: -------------------------------------------------------------------------------- 1 | using Application.Services.Repositories; 2 | using Domain.Entities; 3 | using Core.Persistence.Repositories; 4 | using Persistence.Contexts; 5 | 6 | namespace Persistence.Repositories; 7 | 8 | public class CourseRepository : EfRepositoryBase, ICourseRepository 9 | { 10 | public CourseRepository(BaseDbContext context) : base(context) 11 | { 12 | } 13 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Persistence/Repositories/LessonRepository.cs: -------------------------------------------------------------------------------- 1 | using Application.Services.Repositories; 2 | using Domain.Entities; 3 | using Core.Persistence.Repositories; 4 | using Persistence.Contexts; 5 | 6 | namespace Persistence.Repositories; 7 | 8 | public class LessonRepository : EfRepositoryBase, ILessonRepository 9 | { 10 | public LessonRepository(BaseDbContext context) : base(context) 11 | { 12 | } 13 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Persistence/Repositories/SurveyRepository.cs: -------------------------------------------------------------------------------- 1 | using Application.Services.Repositories; 2 | using Domain.Entities; 3 | using Core.Persistence.Repositories; 4 | using Persistence.Contexts; 5 | 6 | namespace Persistence.Repositories; 7 | 8 | public class SurveyRepository : EfRepositoryBase, ISurveyRepository 9 | { 10 | public SurveyRepository(BaseDbContext context) : base(context) 11 | { 12 | } 13 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Persistence/Repositories/UserRepository.cs: -------------------------------------------------------------------------------- 1 | using Application.Services.Repositories; 2 | using Core.Persistence.Repositories; 3 | using Core.Security.Entities; 4 | using Persistence.Contexts; 5 | 6 | namespace Persistence.Repositories; 7 | 8 | public class UserRepository : EfRepositoryBase, IUserRepository 9 | { 10 | public UserRepository(BaseDbContext context) 11 | : base(context) { } 12 | } 13 | -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountCapabilities/Commands/Delete/DeletedAccountCapabilityCommandValidator.cs: -------------------------------------------------------------------------------- 1 | using FluentValidation; 2 | 3 | namespace Application.Features.AccountCapabilities.Commands.Delete; 4 | 5 | public class DeleteAccountCapabilityCommandValidator : AbstractValidator 6 | { 7 | public DeleteAccountCapabilityCommandValidator() 8 | { 9 | RuleFor(c => c.Id).NotEmpty(); 10 | } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountCapabilities/Queries/GetList/GetListAccountCapabilityListItemDto.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Dtos; 2 | 3 | namespace Application.Features.AccountCapabilities.Queries.GetList; 4 | 5 | public class GetListAccountCapabilityListItemDto : IDto 6 | { 7 | public int Id { get; set; } 8 | public int AccountId { get; set; } 9 | public int CapabilityId { get; set; } 10 | public int Priority { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountClassrooms/Commands/Create/CreatedAccountClassroomResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.AccountClassrooms.Commands.Create; 4 | 5 | public class CreatedAccountClassroomResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int AccountId { get; set; } 9 | public int ClassroomId { get; set; } 10 | public bool IsActive { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountClassrooms/Commands/Update/UpdatedAccountClassroomResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.AccountClassrooms.Commands.Update; 4 | 5 | public class UpdatedAccountClassroomResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int AccountId { get; set; } 9 | public int ClassroomId { get; set; } 10 | public bool IsActive { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountClassrooms/Queries/GetById/GetByIdAccountClassroomResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.AccountClassrooms.Queries.GetById; 4 | 5 | public class GetByIdAccountClassroomResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int AccountId { get; set; } 9 | public int ClassroomId { get; set; } 10 | public bool IsActive { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountExamResults/Commands/Delete/DeletedAccountExamResultCommandValidator.cs: -------------------------------------------------------------------------------- 1 | using FluentValidation; 2 | 3 | namespace Application.Features.AccountExamResults.Commands.Delete; 4 | 5 | public class DeleteAccountExamResultCommandValidator : AbstractValidator 6 | { 7 | public DeleteAccountExamResultCommandValidator() 8 | { 9 | RuleFor(c => c.Id).NotEmpty(); 10 | } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountRecourses/Commands/Create/CreatedAccountRecourseResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.AccountRecourses.Commands.Create; 4 | 5 | public class CreatedAccountRecourseResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int AccountId { get; set; } 9 | public int RecourseId { get; set; } 10 | public int RecourseStepId { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountRecourses/Commands/Update/UpdatedAccountRecourseResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.AccountRecourses.Commands.Update; 4 | 5 | public class UpdatedAccountRecourseResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int AccountId { get; set; } 9 | public int RecourseId { get; set; } 10 | public int RecourseStepId { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountRecourses/Queries/GetById/GetByIdAccountRecourseResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.AccountRecourses.Queries.GetById; 4 | 5 | public class GetByIdAccountRecourseResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int AccountId { get; set; } 9 | public int RecourseId { get; set; } 10 | public int RecourseStepId { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/CourseLearningPaths/Commands/Create/CreatedCourseLearningPathResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.CourseLearningPaths.Commands.Create; 4 | 5 | public class CreatedCourseLearningPathResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int CourseId { get; set; } 9 | public int PathId { get; set; } 10 | public bool Visibility { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/CourseLearningPaths/Commands/Update/UpdatedCourseLearningPathResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.CourseLearningPaths.Commands.Update; 4 | 5 | public class UpdatedCourseLearningPathResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int CourseId { get; set; } 9 | public int PathId { get; set; } 10 | public bool Visibility { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/CourseLearningPaths/Queries/GetById/GetByIdCourseLearningPathResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.CourseLearningPaths.Queries.GetById; 4 | 5 | public class GetByIdCourseLearningPathResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int CourseId { get; set; } 9 | public int PathId { get; set; } 10 | public bool Visibility { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Districts/Queries/GetList/GetListDistrictListItemDto.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Dtos; 2 | 3 | namespace Application.Features.Districts.Queries.GetList; 4 | 5 | public class GetListDistrictListItemDto : IDto 6 | { 7 | public int Id { get; set; } 8 | public int CityId { get; set; } 9 | public string Name { get; set; } 10 | public int Priority { get; set; } 11 | public bool Visibility { get; set; } 12 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Images/Commands/Create/CreatedImageResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Images.Commands.Create; 4 | 5 | public class CreatedImageResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int ImageExtensionId { get; set; } 9 | public string Name { get; set; } 10 | public string Url { get; set; } 11 | public bool IsActive { get; set; } 12 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Images/Commands/Update/UpdatedImageResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Images.Commands.Update; 4 | 5 | public class UpdatedImageResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int ImageExtensionId { get; set; } 9 | public string Name { get; set; } 10 | public string Url { get; set; } 11 | public bool IsActive { get; set; } 12 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Images/Queries/GetById/GetByIdImageResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Images.Queries.GetById; 4 | 5 | public class GetByIdImageResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int ImageExtensionId { get; set; } 9 | public string Name { get; set; } 10 | public string Url { get; set; } 11 | public bool IsActive { get; set; } 12 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/RecourseDetailSteps/Queries/GetList/GetListRecourseDetailStepListItemDto.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Dtos; 2 | 3 | namespace Application.Features.RecourseDetailSteps.Queries.GetList; 4 | 5 | public class GetListRecourseDetailStepListItemDto : IDto 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public string Priority { get; set; } 10 | public bool Visibility { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Persistence/Repositories/AccountRepository.cs: -------------------------------------------------------------------------------- 1 | using Application.Services.Repositories; 2 | using Domain.Entities; 3 | using Core.Persistence.Repositories; 4 | using Persistence.Contexts; 5 | 6 | namespace Persistence.Repositories; 7 | 8 | public class AccountRepository : EfRepositoryBase, IAccountRepository 9 | { 10 | public AccountRepository(BaseDbContext context) : base(context) 11 | { 12 | } 13 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Persistence/Repositories/AddressRepository.cs: -------------------------------------------------------------------------------- 1 | using Application.Services.Repositories; 2 | using Domain.Entities; 3 | using Core.Persistence.Repositories; 4 | using Persistence.Contexts; 5 | 6 | namespace Persistence.Repositories; 7 | 8 | public class AddressRepository : EfRepositoryBase, IAddressRepository 9 | { 10 | public AddressRepository(BaseDbContext context) : base(context) 11 | { 12 | } 13 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Persistence/Repositories/CollegeRepository.cs: -------------------------------------------------------------------------------- 1 | using Application.Services.Repositories; 2 | using Domain.Entities; 3 | using Core.Persistence.Repositories; 4 | using Persistence.Contexts; 5 | 6 | namespace Persistence.Repositories; 7 | 8 | public class CollegeRepository : EfRepositoryBase, ICollegeRepository 9 | { 10 | public CollegeRepository(BaseDbContext context) : base(context) 11 | { 12 | } 13 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Persistence/Repositories/CountryRepository.cs: -------------------------------------------------------------------------------- 1 | using Application.Services.Repositories; 2 | using Domain.Entities; 3 | using Core.Persistence.Repositories; 4 | using Persistence.Contexts; 5 | 6 | namespace Persistence.Repositories; 7 | 8 | public class CountryRepository : EfRepositoryBase, ICountryRepository 9 | { 10 | public CountryRepository(BaseDbContext context) : base(context) 11 | { 12 | } 13 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountAnnouncements/Queries/GetList/GetListAccountAnnouncementListItemDto.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Dtos; 2 | 3 | namespace Application.Features.AccountAnnouncements.Queries.GetList; 4 | 5 | public class GetListAccountAnnouncementListItemDto : IDto 6 | { 7 | public int Id { get; set; } 8 | public int AccountId { get; set; } 9 | public int AnnouncementId { get; set; } 10 | public bool Read { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountCapabilities/Commands/Create/CreatedAccountCapabilityResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.AccountCapabilities.Commands.Create; 4 | 5 | public class CreatedAccountCapabilityResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int AccountId { get; set; } 9 | public int CapabilityId { get; set; } 10 | public int Priority { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountCapabilities/Commands/Update/UpdatedAccountCapabilityResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.AccountCapabilities.Commands.Update; 4 | 5 | public class UpdatedAccountCapabilityResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int AccountId { get; set; } 9 | public int CapabilityId { get; set; } 10 | public int Priority { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountCapabilities/Queries/GetById/GetByIdAccountCapabilityResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.AccountCapabilities.Queries.GetById; 4 | 5 | public class GetByIdAccountCapabilityResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int AccountId { get; set; } 9 | public int CapabilityId { get; set; } 10 | public int Priority { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountCertificates/Commands/Create/CreatedAccountCertificateResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.AccountCertificates.Commands.Create; 4 | 5 | public class CreatedAccountCertificateResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int AccountId { get; set; } 9 | public int CertificateId { get; set; } 10 | public int Priority { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountCertificates/Commands/Delete/DeletedAccountCertificateCommandValidator.cs: -------------------------------------------------------------------------------- 1 | using FluentValidation; 2 | 3 | namespace Application.Features.AccountCertificates.Commands.Delete; 4 | 5 | public class DeleteAccountCertificateCommandValidator : AbstractValidator 6 | { 7 | public DeleteAccountCertificateCommandValidator() 8 | { 9 | RuleFor(c => c.Id).NotEmpty(); 10 | } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountCertificates/Commands/Update/UpdatedAccountCertificateResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.AccountCertificates.Commands.Update; 4 | 5 | public class UpdatedAccountCertificateResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int AccountId { get; set; } 9 | public int CertificateId { get; set; } 10 | public int Priority { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountCertificates/Queries/GetById/GetByIdAccountCertificateResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.AccountCertificates.Queries.GetById; 4 | 5 | public class GetByIdAccountCertificateResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int AccountId { get; set; } 9 | public int CertificateId { get; set; } 10 | public int Priority { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountCertificates/Queries/GetList/GetListAccountCertificateListItemDto.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Dtos; 2 | 3 | namespace Application.Features.AccountCertificates.Queries.GetList; 4 | 5 | public class GetListAccountCertificateListItemDto : IDto 6 | { 7 | public int Id { get; set; } 8 | public int AccountId { get; set; } 9 | public int CertificateId { get; set; } 10 | public int Priority { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Contracts/Queries/GetList/GetListContractListItemDto.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Dtos; 2 | 3 | namespace Application.Features.Contracts.Queries.GetList; 4 | 5 | public class GetListContractListItemDto : IDto 6 | { 7 | public int Id { get; set; } 8 | public int ContractTypeId { get; set; } 9 | public string Name { get; set; } 10 | public string Path { get; set; } 11 | public bool IsActive { get; set; } 12 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/CourseLearningPaths/Commands/Delete/DeletedCourseLearningPathCommandValidator.cs: -------------------------------------------------------------------------------- 1 | using FluentValidation; 2 | 3 | namespace Application.Features.CourseLearningPaths.Commands.Delete; 4 | 5 | public class DeleteCourseLearningPathCommandValidator : AbstractValidator 6 | { 7 | public DeleteCourseLearningPathCommandValidator() 8 | { 9 | RuleFor(c => c.Id).NotEmpty(); 10 | } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Districts/Commands/Create/CreatedDistrictResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Districts.Commands.Create; 4 | 5 | public class CreatedDistrictResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int CityId { get; set; } 9 | public string Name { get; set; } 10 | public int Priority { get; set; } 11 | public bool Visibility { get; set; } 12 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Districts/Commands/Update/UpdatedDistrictResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Districts.Commands.Update; 4 | 5 | public class UpdatedDistrictResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int CityId { get; set; } 9 | public string Name { get; set; } 10 | public int Priority { get; set; } 11 | public bool Visibility { get; set; } 12 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Districts/Queries/GetById/GetByIdDistrictResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Districts.Queries.GetById; 4 | 5 | public class GetByIdDistrictResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int CityId { get; set; } 9 | public string Name { get; set; } 10 | public int Priority { get; set; } 11 | public bool Visibility { get; set; } 12 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/ForeignLanguageLevels/Queries/GetList/GetListForeignLanguageLevelListItemDto.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Dtos; 2 | 3 | namespace Application.Features.ForeignLanguageLevels.Queries.GetList; 4 | 5 | public class GetListForeignLanguageLevelListItemDto : IDto 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public int Priority { get; set; } 10 | public bool Visibility { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/OperationClaims/Commands/Create/CreateOperationClaimCommandValidator.cs: -------------------------------------------------------------------------------- 1 | using FluentValidation; 2 | 3 | namespace Application.Features.OperationClaims.Commands.Create; 4 | 5 | public class CreateOperationClaimCommandValidator : AbstractValidator 6 | { 7 | public CreateOperationClaimCommandValidator() 8 | { 9 | RuleFor(c => c.Name).NotEmpty().MinimumLength(2); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/OperationClaims/Commands/Update/UpdateOperationClaimCommandValidator.cs: -------------------------------------------------------------------------------- 1 | using FluentValidation; 2 | 3 | namespace Application.Features.OperationClaims.Commands.Update; 4 | 5 | public class UpdateOperationClaimCommandValidator : AbstractValidator 6 | { 7 | public UpdateOperationClaimCommandValidator() 8 | { 9 | RuleFor(c => c.Name).NotEmpty().MinimumLength(2); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/RecourseDetailSteps/Commands/Create/CreatedRecourseDetailStepResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.RecourseDetailSteps.Commands.Create; 4 | 5 | public class CreatedRecourseDetailStepResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public string Priority { get; set; } 10 | public bool Visibility { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/RecourseDetailSteps/Commands/Delete/DeletedRecourseDetailStepCommandValidator.cs: -------------------------------------------------------------------------------- 1 | using FluentValidation; 2 | 3 | namespace Application.Features.RecourseDetailSteps.Commands.Delete; 4 | 5 | public class DeleteRecourseDetailStepCommandValidator : AbstractValidator 6 | { 7 | public DeleteRecourseDetailStepCommandValidator() 8 | { 9 | RuleFor(c => c.Id).NotEmpty(); 10 | } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/RecourseDetailSteps/Commands/Update/UpdatedRecourseDetailStepResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.RecourseDetailSteps.Commands.Update; 4 | 5 | public class UpdatedRecourseDetailStepResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public string Priority { get; set; } 10 | public bool Visibility { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/RecourseDetailSteps/Queries/GetById/GetByIdRecourseDetailStepResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.RecourseDetailSteps.Queries.GetById; 4 | 5 | public class GetByIdRecourseDetailStepResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public string Priority { get; set; } 10 | public bool Visibility { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Persistence/Repositories/ContractRepository.cs: -------------------------------------------------------------------------------- 1 | using Application.Services.Repositories; 2 | using Domain.Entities; 3 | using Core.Persistence.Repositories; 4 | using Persistence.Contexts; 5 | 6 | namespace Persistence.Repositories; 7 | 8 | public class ContractRepository : EfRepositoryBase, IContractRepository 9 | { 10 | public ContractRepository(BaseDbContext context) : base(context) 11 | { 12 | } 13 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Persistence/Repositories/DistrictRepository.cs: -------------------------------------------------------------------------------- 1 | using Application.Services.Repositories; 2 | using Domain.Entities; 3 | using Core.Persistence.Repositories; 4 | using Persistence.Contexts; 5 | 6 | namespace Persistence.Repositories; 7 | 8 | public class DistrictRepository : EfRepositoryBase, IDistrictRepository 9 | { 10 | public DistrictRepository(BaseDbContext context) : base(context) 11 | { 12 | } 13 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Persistence/Repositories/QuestionRepository.cs: -------------------------------------------------------------------------------- 1 | using Application.Services.Repositories; 2 | using Domain.Entities; 3 | using Core.Persistence.Repositories; 4 | using Persistence.Contexts; 5 | 6 | namespace Persistence.Repositories; 7 | 8 | public class QuestionRepository : EfRepositoryBase, IQuestionRepository 9 | { 10 | public QuestionRepository(BaseDbContext context) : base(context) 11 | { 12 | } 13 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Persistence/Repositories/RecourseRepository.cs: -------------------------------------------------------------------------------- 1 | using Application.Services.Repositories; 2 | using Domain.Entities; 3 | using Core.Persistence.Repositories; 4 | using Persistence.Contexts; 5 | 6 | namespace Persistence.Repositories; 7 | 8 | public class RecourseRepository : EfRepositoryBase, IRecourseRepository 9 | { 10 | public RecourseRepository(BaseDbContext context) : base(context) 11 | { 12 | } 13 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountAnnouncements/Commands/Create/CreatedAccountAnnouncementResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.AccountAnnouncements.Commands.Create; 4 | 5 | public class CreatedAccountAnnouncementResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int AccountId { get; set; } 9 | public int AnnouncementId { get; set; } 10 | public bool Read { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountAnnouncements/Commands/Delete/DeletedAccountAnnouncementCommandValidator.cs: -------------------------------------------------------------------------------- 1 | using FluentValidation; 2 | 3 | namespace Application.Features.AccountAnnouncements.Commands.Delete; 4 | 5 | public class DeleteAccountAnnouncementCommandValidator : AbstractValidator 6 | { 7 | public DeleteAccountAnnouncementCommandValidator() 8 | { 9 | RuleFor(c => c.Id).NotEmpty(); 10 | } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountAnnouncements/Commands/Update/UpdatedAccountAnnouncementResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.AccountAnnouncements.Commands.Update; 4 | 5 | public class UpdatedAccountAnnouncementResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int AccountId { get; set; } 9 | public int AnnouncementId { get; set; } 10 | public bool Read { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountAnnouncements/Queries/GetById/GetByIdAccountAnnouncementResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.AccountAnnouncements.Queries.GetById; 4 | 5 | public class GetByIdAccountAnnouncementResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int AccountId { get; set; } 9 | public int AnnouncementId { get; set; } 10 | public bool Read { get; set; } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/AccountLearningPaths/Commands/Delete/DeletedAccountLearningPathCommandValidator.cs: -------------------------------------------------------------------------------- 1 | using FluentValidation; 2 | 3 | namespace Application.Features.AccountLearningPaths.Commands.Delete; 4 | 5 | public class DeleteAccountLearningPathCommandValidator : AbstractValidator 6 | { 7 | public DeleteAccountLearningPathCommandValidator() 8 | { 9 | RuleFor(c => c.Id).NotEmpty(); 10 | } 11 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Contracts/Commands/Create/CreatedContractResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Contracts.Commands.Create; 4 | 5 | public class CreatedContractResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int ContractTypeId { get; set; } 9 | public string Name { get; set; } 10 | public string Path { get; set; } 11 | public bool IsActive { get; set; } 12 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Contracts/Commands/Update/UpdatedContractResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Contracts.Commands.Update; 4 | 5 | public class UpdatedContractResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int ContractTypeId { get; set; } 9 | public string Name { get; set; } 10 | public string Path { get; set; } 11 | public bool IsActive { get; set; } 12 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/Contracts/Queries/GetById/GetByIdContractResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.Contracts.Queries.GetById; 4 | 5 | public class GetByIdContractResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public int ContractTypeId { get; set; } 9 | public string Name { get; set; } 10 | public string Path { get; set; } 11 | public bool IsActive { get; set; } 12 | } -------------------------------------------------------------------------------- /src/tobetoPlatformCleanArchitecture/Application/Features/ForeignLanguageLevels/Commands/Create/CreatedForeignLanguageLevelResponse.cs: -------------------------------------------------------------------------------- 1 | using Core.Application.Responses; 2 | 3 | namespace Application.Features.ForeignLanguageLevels.Commands.Create; 4 | 5 | public class CreatedForeignLanguageLevelResponse : IResponse 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public int Priority { get; set; } 10 | public bool Visibility { get; set; } 11 | } --------------------------------------------------------------------------------