├── .dockerignore ├── EPlast ├── package-lock.json ├── EPlast.Resources │ ├── Genders.cs │ ├── AnnualReportControllerMessage.cs │ ├── CellType.cs │ ├── AnnualReportType.cs │ ├── AuthenticationErrors.cs │ ├── AllowedDates.cs │ ├── UserGenders.cs │ ├── UserPrecautionStatus.cs │ ├── AllowedRolesToBeAdminOfEvent.cs │ ├── ApproveType.cs │ └── AllowedDegreesForCityHeadAndDeputy.cs ├── EPlast.BLL │ ├── Services │ │ ├── WebChat │ │ │ └── ChatService.cs │ │ ├── HostURL │ │ │ └── HostURLOptions.cs │ │ ├── FileManager │ │ │ └── FileManager.cs │ │ └── Statistics │ │ │ └── StatisticsItems │ │ │ └── Interfaces │ │ │ └── IStatisticsItem.cs │ ├── Interfaces │ │ ├── PDF │ │ │ ├── IPDFCreator.cs │ │ │ ├── IPDFDocument.cs │ │ │ ├── IPDFSettings.cs │ │ │ └── IPDFService.cs │ │ ├── FileManager │ │ │ ├── IFileManager.cs │ │ │ └── IDirectoryManager.cs │ │ ├── AboutBase │ │ │ └── IAboutBaseWrapper.cs │ │ ├── Logging │ │ │ ├── IGlobalLoggerService.cs │ │ │ └── ILoggerService.cs │ │ ├── GoverningBodies │ │ │ └── Announcement │ │ │ │ ├── IHtmlService.cs │ │ │ │ └── IGoverningBodyBlobStorageService.cs │ │ ├── Club │ │ │ ├── IClubMembers.cs │ │ │ └── IClubAccessGetter.cs │ │ ├── EmailSending │ │ │ ├── INewPlastMemberEmailGreetingService.cs │ │ │ └── IEmailReminderService.cs │ │ ├── Home │ │ │ ├── EventUser │ │ │ │ └── IEventAdministrationTypeManager.cs │ │ │ └── Events │ │ │ │ └── IEventAdministrationManager.cs │ │ ├── Decesion │ │ │ └── IDecisionVmInitializer.cs │ │ ├── CityClub │ │ │ └── CityClubBase.cs │ │ ├── RegionBoard │ │ │ └── IRegionsBoardService.cs │ │ ├── Events │ │ │ ├── IEventAdminManager.cs │ │ │ └── IEventWrapper.cs │ │ ├── Resources │ │ │ └── IResources.cs │ │ ├── SecurityModel │ │ │ └── ISecurityModel.cs │ │ ├── Region │ │ │ └── IRegionAccessGetter.cs │ │ ├── Blank │ │ │ ├── ICourseService.cs │ │ │ └── IUserCourseService.cs │ │ ├── FormerMember │ │ │ ├── IFormerMemberService.cs │ │ │ └── IFormerMemberAdminService.cs │ │ ├── Statistics │ │ │ ├── ICityStatisticsService.cs │ │ │ └── IRegionStatisticsService.cs │ │ ├── ConfirmedUsers │ │ │ └── IConfirmedUsersService.cs │ │ └── EventUser │ │ │ └── IEventsManager.cs │ ├── DTO │ │ ├── Terms │ │ │ ├── AllowHtmlAttribute.cs │ │ │ └── TermsDTO.cs │ │ ├── IDocumentDTO.cs │ │ ├── Statistics │ │ │ ├── Region.cs │ │ │ ├── StatisticsItem.cs │ │ │ ├── City.cs │ │ │ ├── CityStatistics.cs │ │ │ ├── YearStatistics.cs │ │ │ ├── RegionStatistics.cs │ │ │ ├── CitiesStatisticsParameters.cs │ │ │ └── RegionsStatisticsParameters.cs │ │ ├── Club │ │ │ ├── ClubReportDTO.cs │ │ │ ├── ClubDocumentTypeDTO.cs │ │ │ ├── ClubReportCityMembersDTO.cs │ │ │ ├── ClubReportCityDTO.cs │ │ │ ├── ClubForAdministrationDTO.cs │ │ │ ├── ClubObjectDTO.cs │ │ │ ├── ClubLegalStatusDTO.cs │ │ │ ├── ClubReportPlastDegreesDTO.cs │ │ │ └── ClubReportCitiesDTO.cs │ │ ├── UserProfiles │ │ │ ├── DistinctionDTO.cs │ │ │ ├── PrecautionDTO.cs │ │ │ ├── GenderDTO.cs │ │ │ ├── ApproverDTO.cs │ │ │ └── UpuDegreeDTO.cs │ │ ├── Admin │ │ │ ├── AdminTypeDTO.cs │ │ │ └── FilterTableParametersByRole.cs │ │ ├── AnnualReport │ │ │ ├── RegionDTO.cs │ │ │ ├── UserDTO.cs │ │ │ ├── AnnualReportStatusDTO.cs │ │ │ └── CityDTO.cs │ │ ├── City │ │ │ ├── CityDocumentTypeDTO.cs │ │ │ ├── CityForAdministrationDTO.cs │ │ │ ├── CityObjectDTO.cs │ │ │ ├── CityAdministrationViewModelDTO.cs │ │ │ ├── CityLegalStatusDTO.cs │ │ │ └── CityUserDTO.cs │ │ ├── Region │ │ │ ├── RegionNamesDTO.cs │ │ │ ├── RegionsStatusTypeDTO.cs │ │ │ ├── RegionObjectsDTO.cs │ │ │ ├── RegionForAdministrationDTO.cs │ │ │ └── RegionDocumentDTO.cs │ │ ├── EventUser │ │ │ ├── EventTypeDTO.cs │ │ │ ├── UserInfoDTO.cs │ │ │ ├── EventAdministrationDTO.cs │ │ │ ├── CreateEventAdminDTO.cs │ │ │ └── EventGeneralInfoDTO.cs │ │ ├── Events │ │ │ ├── EventSectionDTO.cs │ │ │ ├── EventCategoryCreateDTO.cs │ │ │ ├── EventGalleryDTO.cs │ │ │ ├── EventCategoryDTO.cs │ │ │ ├── EventAdminDTO.cs │ │ │ ├── EventFeedbackDto.cs │ │ │ └── EventParticipantDTO.cs │ │ ├── AboutBase │ │ │ └── SubsectionPicturesDTO.cs │ │ ├── ActiveMembership │ │ │ ├── PlastDegreeDTO.cs │ │ │ ├── UserPlastDegreePutDTO.cs │ │ │ ├── UserPlastDegreePostDTO.cs │ │ │ ├── UserPlastDegreeDTO.cs │ │ │ └── UserMembershipDatesDTO.cs │ │ ├── GoverningBody │ │ │ ├── GoverningBodyDocumentTypeDTO.cs │ │ │ ├── Sector │ │ │ │ └── SectorDocumentTypeDTO.cs │ │ │ └── Announcement │ │ │ │ ├── GoverningBodyAnnouncementImageDTO.cs │ │ │ │ └── UserDTO.cs │ │ ├── Decision │ │ │ ├── DecisionWrapperDTO.cs │ │ │ ├── DecisionTargetDTO.cs │ │ │ └── DecisionStatusTypeDTO.cs │ │ ├── Notification │ │ │ ├── NotificationTypeDTO.cs │ │ │ └── ConnectionDTO.cs │ │ ├── MethodicDocument │ │ │ ├── MethodicDocumentWraperDTO.cs │ │ │ └── MethodicDocumentTypeDTO.cs │ │ ├── Blank │ │ │ ├── ExtractFromUPUDocumentsDTO.cs │ │ │ └── AchievementDocumentsDTO.cs │ │ ├── UserAuthentication │ │ │ └── ForgotPasswordDto.cs │ │ ├── Course │ │ │ └── CourseDto.cs │ │ ├── PrecautionsDTO │ │ │ ├── UserPrecautionsTableInfo.cs │ │ │ └── SuggestedUserDto.cs │ │ ├── EducatorsStaff │ │ │ └── EducatorsStaffTypesDTO.cs │ │ └── Distinction │ │ │ └── DistictionTableSettings.cs │ ├── Queries │ │ ├── TermsOfUse │ │ │ ├── GetFirstRecordQuery.cs │ │ │ ├── CheckIfAdminForTermsQuery.cs │ │ │ └── GetAllUsersIdWithoutSenderQuery.cs │ │ ├── Precaution │ │ │ ├── GetAllPrecautionQuery.cs │ │ │ ├── GetPrecautionQuery.cs │ │ │ └── CheckIfAdminQuery.cs │ │ ├── Distinction │ │ │ ├── GetAllDistinctionQuery.cs │ │ │ ├── GetDistinctionQuery.cs │ │ │ └── CheckIfAdminQuery.cs │ │ ├── Decision │ │ │ ├── GetDecisionListAsyncQuery.cs │ │ │ ├── GetDecisionAsyncQuery.cs │ │ │ └── DownloadDecisionFileFromBlobAsyncQuery.cs │ │ ├── City │ │ │ ├── GetCityAdminsIdsQuery.cs │ │ │ ├── PlastMemberCheckQuery.cs │ │ │ ├── GetCityIdByUserIdQuery.cs │ │ │ ├── GetCityLogoBase64Query.cs │ │ │ ├── GetCityByIdQuery.cs │ │ │ ├── GetCityMembersQuery.cs │ │ │ ├── GetCityDocumentsQuery.cs │ │ │ ├── GetCityFollowersQuery.cs │ │ │ ├── GetCityAdminsQuery.cs │ │ │ ├── GetCityProfileBasicQuery.cs │ │ │ ├── GetCityByIdWthFullInfoQuery.cs │ │ │ ├── GetCityUsersQuery.cs │ │ │ ├── GetCitiesByRegionQuery.cs │ │ │ ├── GetAdministrationQuery.cs │ │ │ └── GetAllCitiesOrByNameQuery.cs │ │ └── Club │ │ │ ├── GetByIdQuery.cs │ │ │ ├── GetCountUsersPerYearQuery.cs │ │ │ ├── GetCountDeletedUsersPerYearQuery.cs │ │ │ ├── GetClubHistoryMembersQuery.cs │ │ │ ├── GetClubHistoryFollowersQuery.cs │ │ │ └── GetClubAdministrationsQuery.cs │ ├── MediatrEntryPoint.cs │ ├── Models │ │ ├── EmailModel.cs │ │ └── BlankModel.cs │ ├── Commands │ │ ├── City │ │ │ ├── RemoveCityCommand.cs │ │ │ ├── ArchiveCityCommand.cs │ │ │ ├── UnArchiveCityCommand.cs │ │ │ ├── EditCityCommand.cs │ │ │ ├── UploadCityPhotoCommand.cs │ │ │ ├── CreateCityWthIdCommand.cs │ │ │ └── CreateCityCommand.cs │ │ ├── Decision │ │ │ ├── DeleteDecisionAsyncCommand.cs │ │ │ ├── UpdateCommand.cs │ │ │ ├── SaveDecisionAsyncCommand.cs │ │ │ └── CreateDecisionTargetAsyncCommand.cs │ │ ├── Club │ │ │ ├── ArchiveCommand.cs │ │ │ └── UnArchiveCommand.cs │ │ └── Precaution │ │ │ └── DeletePrecautionCommand.cs │ ├── Settings │ │ └── EmailServiceSettings.cs │ └── Mapping │ │ ├── Approver │ │ └── ApproveProfile.cs │ │ ├── User │ │ └── UserMappingProfile.cs │ │ ├── Precautions │ │ ├── PrecautionProfile.cs │ │ ├── SuggestedUserProfile.cs │ │ └── PrecautionUserProfile.cs │ │ ├── Distinctions │ │ └── DistinctionProfile.cs │ │ ├── UserProfile │ │ ├── WorkProfile.cs │ │ ├── DegreeProfile.cs │ │ ├── GenderProfile.cs │ │ ├── UserProfileProfile.cs │ │ ├── ReligionProfile.cs │ │ ├── EducationProfile.cs │ │ ├── UpuDegreeProfile.cs │ │ ├── NationalityProfile.cs │ │ └── UserRenewalProfile.cs │ │ ├── EventUser │ │ ├── EventProfile.cs │ │ ├── EventTypeProfile.cs │ │ ├── EventGeneralInfoProfile.cs │ │ └── EventEditAdminProfile.cs │ │ ├── ConfirmedUser │ │ └── ConfirmedUserProfile.cs │ │ ├── Decisions │ │ ├── DecisionTargetProfile.cs │ │ └── DecisionStatusTypeProfile.cs │ │ ├── Region │ │ ├── RegionUser.cs │ │ ├── RegionDocumentProfile.cs │ │ ├── RegionAdministrationProfile.cs │ │ ├── RegionAnnualReportProfile.cs │ │ └── RegionFollowerProfile.cs │ │ ├── Terms │ │ └── TermsProfile.cs │ │ ├── GoverningBody │ │ ├── Sector │ │ │ └── SectorUserProfile.cs │ │ ├── GoverningBodyUserProfile.cs │ │ └── Announcement │ │ │ └── UserProfile.cs │ │ ├── AnnualReport │ │ ├── CityProfile.cs │ │ ├── UserProfile.cs │ │ ├── RegionProfile.cs │ │ ├── MembersStatisticProfile.cs │ │ └── AnnualReportProfile.cs │ │ ├── City │ │ ├── CityUserProfile.cs │ │ ├── CityMembersProfile.cs │ │ ├── CityLegalStatusProfile.cs │ │ └── CityProfile.cs │ │ ├── Club │ │ ├── ClubUserProfile.cs │ │ ├── ClubReportProfile.cs │ │ ├── ClubReportCityProfile.cs │ │ ├── ClubMembersProfile.cs │ │ ├── ClubReportUserProfile.cs │ │ ├── ClubLegalStatusProfile.cs │ │ ├── ClubReportCitiesProfile.cs │ │ ├── ClubMemberHistoryProfile.cs │ │ ├── ClubAnnualReportProfile.cs │ │ ├── ClubAdministrationProfile.cs │ │ ├── ClubReportCitiMembersProfile.cs │ │ ├── ClubProfile.cs │ │ ├── ClubAdministrationStatusProfile.cs │ │ └── ClubReportAdministrationProfile.cs │ │ ├── Events │ │ └── EventCategoryProfile.cs │ │ ├── Statistics │ │ ├── CityProfile.cs │ │ └── RegionProfile.cs │ │ ├── ActiveMembership │ │ ├── PlastDegreeProfile.cs │ │ ├── UserPlastDegreeProfile.cs │ │ ├── UserMembershipDatesProfile.cs │ │ └── UserPlastDegreePostProfile.cs │ │ ├── Notification │ │ ├── NotificationTypeProfile.cs │ │ └── UserNotificationProfile.cs │ │ └── AboutBase │ │ ├── AboutBaseSectionProfile.cs │ │ └── AboutBaseSubsectionProfile.cs ├── EPlast.Tests │ └── Services │ │ └── AboutBase │ │ └── AboutBaseSectionDTO.cs ├── EPlast.WebApi │ ├── appsettings.Development.json │ ├── appsettings.Staging.json │ ├── appsettings.Production.json │ ├── .config │ │ └── dotnet-tools.json │ ├── Models │ │ ├── City │ │ │ ├── CityDocumentTypeViewModel.cs │ │ │ ├── CityMembersViewModel.cs │ │ │ └── CityDocumentsViewModel.cs │ │ ├── GoverningBody │ │ │ ├── Sector │ │ │ │ └── SectorDocumentTypeViewModel.cs │ │ │ └── GoverningBodyDocumentTypeViewModel.cs │ │ ├── Region │ │ │ ├── RegionViewModel.cs │ │ │ └── RegionProfileViewModel.cs │ │ ├── Admin │ │ │ ├── CitiesAdminsViewModel.cs │ │ │ └── AdminTypeViewModel.cs │ │ ├── Approver │ │ │ └── ApproverViewModel.cs │ │ ├── UserModels │ │ │ └── UserProfileFields │ │ │ │ ├── DegreeViewModel.cs │ │ │ │ ├── UpuDegreeViewModel.cs │ │ │ │ └── WorkViewModel.cs │ │ ├── Club │ │ │ ├── ClubDocumentTypeViewModel.cs │ │ │ └── ClubMembersViewModel.cs │ │ ├── ErrorHandling │ │ │ └── ErrorDetails.cs │ │ ├── Terms │ │ │ └── TermsViewModel.cs │ │ └── MethodicDocument │ │ │ └── MethodicDocumentCreateViewModel.cs │ ├── Mapping │ │ ├── City │ │ │ ├── CityUserProfile.cs │ │ │ ├── CityMembersProfile.cs │ │ │ └── CityAdministrationProfile.cs │ │ ├── Approver │ │ │ ├── ApproverProfile.cs │ │ │ └── ConfirmedUserProfile.cs │ │ ├── Club │ │ │ ├── ClubUserProfile.cs │ │ │ ├── ClubProfileProfile.cs │ │ │ ├── ClubMembersProfile.cs │ │ │ └── ClubAdministrationProfile.cs │ │ ├── User │ │ │ └── UserProfileFields │ │ │ │ ├── WorkProfile.cs │ │ │ │ ├── DegreeProfile.cs │ │ │ │ ├── GenderProfile.cs │ │ │ │ ├── EducationProfile.cs │ │ │ │ ├── ReligionProfile.cs │ │ │ │ ├── UpuDegreeProfile.cs │ │ │ │ └── NationalityProfile.cs │ │ ├── GoverningBody │ │ │ ├── Sector │ │ │ │ └── SectorMembersProfile.cs │ │ │ └── GoverningBodyMembersProfile.cs │ │ └── Event │ │ │ └── EventProfile.cs │ └── CustomAttributes │ │ └── AuthorizeRolesAttribute.cs └── EPlast.DataAccess │ ├── Repositories │ ├── Interfaces │ │ ├── User │ │ │ ├── IUserRepository.cs │ │ │ ├── IWorkRepository.cs │ │ │ ├── IDegreeRepository.cs │ │ │ ├── IGenderRepository.cs │ │ │ ├── IApproverRepository.cs │ │ │ ├── IEducationRepository.cs │ │ │ ├── INationalityRepository.cs │ │ │ ├── IReligionRepository.cs │ │ │ ├── IUpuDegreeRepository.cs │ │ │ ├── IParticipantRepository.cs │ │ │ ├── IPrecautionRepository.cs │ │ │ ├── IUserProfileRepository.cs │ │ │ ├── IDistinctionRepository.cs │ │ │ ├── IPlastDegreeRepository.cs │ │ │ ├── IParticipantStatusRepository.cs │ │ │ ├── IUserPlastDegreeRepository.cs │ │ │ ├── IUserPrecautionRepository.cs │ │ │ ├── IUserDistinctionRepository.cs │ │ │ ├── IConfirmedUserRepository.cs │ │ │ └── IUserMembershipDatesRepository.cs │ │ ├── Decision │ │ │ ├── IDecesionTarget.cs │ │ │ ├── IDocumentTemplate.cs │ │ │ └── IDecesion.cs │ │ ├── City │ │ │ ├── ICityMembersRepository.cs │ │ │ ├── ICityDocumentsRepository.cs │ │ │ ├── ICityDocumentTypeRepository.cs │ │ │ ├── ICityLegalStatusesRepository.cs │ │ │ └── ICityAdministrationRepository.cs │ │ ├── Club │ │ │ ├── IClubMembersRepository.cs │ │ │ ├── IClubDocumentsRepository.cs │ │ │ ├── IClubDocumentTypeRepository.cs │ │ │ ├── IClubMemberHistoryRepository.cs │ │ │ ├── IClubReportAdminsRepository.cs │ │ │ ├── IClubReportCitiesRepository.cs │ │ │ ├── IClubReportMemberRepository.cs │ │ │ ├── IClubAdministrationRepository.cs │ │ │ ├── IClubReportPlastDegreesRepository.cs │ │ │ ├── IClubLegalStatusesRepository.cs │ │ │ └── IClubRepository.cs │ │ ├── GoverningBody │ │ │ ├── Sector │ │ │ │ ├── ISectorRepository.cs │ │ │ │ ├── ISectorDocumentsRepository.cs │ │ │ │ ├── ISectorDocumentTypeRepository.cs │ │ │ │ └── ISectorAdministrationRepository.cs │ │ │ ├── IOrganizationRepository.cs │ │ │ ├── IGoverningBodyDocumentsRepository.cs │ │ │ ├── IGoverningBodyDocumentTypeRepository.cs │ │ │ ├── IGoverningBodyAdministrationRepository.cs │ │ │ └── Announcement │ │ │ │ └── IGoverningBodyAnnouncementImageRepository.cs │ │ ├── Events │ │ │ ├── IEventAdminRepository.cs │ │ │ ├── IEventSectionRepository.cs │ │ │ ├── IEventTypeRepository.cs │ │ │ ├── IEventRepository.cs │ │ │ ├── IEventCategoryTypeRepository.cs │ │ │ ├── IEventGallaryRepository.cs │ │ │ ├── IEventStatusRepository.cs │ │ │ ├── IGallaryRepository.cs │ │ │ ├── IEventCategoryRepository.cs │ │ │ ├── IEventAdministrationTypeRepository.cs │ │ │ ├── IEventAdministrationRepository.cs │ │ │ └── IEventFeedbackRepository.cs │ │ ├── Notification │ │ │ ├── INotificationTypeRepository.cs │ │ │ └── IUserNotificationRepository.cs │ │ ├── AnnualReport │ │ │ └── IMembersStatisticsRepository.cs │ │ ├── Region │ │ │ ├── IRegionFollowersRepository.cs │ │ │ ├── IRegionAdministrationRepository.cs │ │ │ └── IRegionDocumentRepository.cs │ │ ├── AboutBase │ │ │ ├── IPicturesRepository.cs │ │ │ ├── ISubsectionRepository.cs │ │ │ ├── ISubsectionPicturesRepository.cs │ │ │ └── ISectionRepository.cs │ │ ├── Terms │ │ │ └── ITermsRepository.cs │ │ ├── Blank │ │ │ ├── IAchievementDocumentsRepository.cs │ │ │ ├── IBlankBiographyDocumentsRepository.cs │ │ │ ├── IExtractFromUPUDocumentsRepository.cs │ │ │ └── ICourseRepository.cs │ │ ├── EducatorsStaff │ │ │ ├── IEducatorsStaffRepository.cs │ │ │ └── IEducatorsStaffTypesRepository.cs │ │ └── MethodicDocument │ │ │ └── IMethodicDocumentRepository.cs │ └── Realizations │ │ ├── User │ │ ├── WorkRepository.cs │ │ ├── DegreeRepository.cs │ │ ├── GenderRepository.cs │ │ ├── ReligionRepository.cs │ │ ├── EducationRepository.cs │ │ ├── UpuDegreeRepository.cs │ │ ├── NationalityRepository.cs │ │ ├── PlastDegreeRepository.cs │ │ ├── ParticipantRepository.cs │ │ ├── PrecautionRepository.cs │ │ ├── ConfirmedUserRepository.cs │ │ ├── DistinctionRepository.cs │ │ ├── ParticipantStatusRepository.cs │ │ ├── UserProfileRepository.cs │ │ ├── ApproverRepository.cs │ │ └── UserPlastDegreeRepository.cs │ │ ├── Decision │ │ ├── DecesionTargetRepository.cs │ │ └── DocumentTemplateRepository.cs │ │ ├── Events │ │ ├── EventRepository.cs │ │ ├── GallaryRepository.cs │ │ ├── EventTypeRepository.cs │ │ ├── EventFeedbackRepository.cs │ │ ├── EventStatusRepository.cs │ │ ├── EventGallaryRepository.cs │ │ └── EventCategoryRepository.cs │ │ ├── Notification │ │ ├── NotificationTypeRepository.cs │ │ └── UserNotificationRepository.cs │ │ ├── AboutBase │ │ └── PicturesRepository.cs │ │ ├── City │ │ ├── CityMembersRepository.cs │ │ ├── CityDocumentsRepository.cs │ │ └── CityDocumentTypeRepository.cs │ │ └── Club │ │ ├── ClubMembersRepository.cs │ │ ├── ClubDocumentsRepository.cs │ │ ├── ClubDocumentTypeRepository.cs │ │ ├── ClubReportAdminsRepository.cs │ │ └── ClubReportMemberRepository.cs │ └── Entities │ ├── City │ ├── CityLevel.cs │ ├── CityObject.cs │ └── CityLegalStatus.cs │ ├── Region │ ├── RegionNamesObject.cs │ ├── RegionObject.cs │ └── RegionsStatusType.cs │ ├── Event │ ├── EventGallary.cs │ ├── EventCategoryType.cs │ ├── EventSection.cs │ ├── Gallary.cs │ ├── EventStatus.cs │ ├── EventFeedback.cs │ └── EventAdmin.cs │ ├── Club │ ├── ClubObject.cs │ ├── ClubReportMember.cs │ └── ClubLegalStatus.cs │ ├── AboutBase │ ├── SubsectionPictures.cs │ ├── Pictures.cs │ └── Section.cs │ ├── AnnualReport │ └── AnnualReportStatus.cs │ ├── UserEntities │ ├── UserFormerMembershipTable.cs │ ├── Approver.cs │ ├── PlastDegree.cs │ ├── UpuDegree.cs │ ├── Distinction.cs │ └── ParticipantStatus.cs │ ├── Decision │ └── DecesionStatus.cs │ └── Notification │ └── NotificationType.cs ├── ePlastLogotype.png ├── Activity Checker ├── Services │ ├── IMyService.cs │ └── AppSettings.cs └── appsettings.json └── manifests └── test ├── service.yml ├── redis-master-service.yaml ├── cert-issuer-prod.yml └── cert-prod.yml /.dockerignore: -------------------------------------------------------------------------------- 1 | bin/ 2 | obj/ 3 | 4 | -------------------------------------------------------------------------------- /EPlast/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "lockfileVersion": 1 3 | } 4 | -------------------------------------------------------------------------------- /ePlastLogotype.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ita-social-projects/EPlast/HEAD/ePlastLogotype.png -------------------------------------------------------------------------------- /EPlast/EPlast.Resources/Genders.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.Resources 2 | { 3 | public class Genders 4 | { 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /Activity Checker/Services/IMyService.cs: -------------------------------------------------------------------------------- 1 | using System.Threading.Tasks; 2 | 3 | public interface IMyService 4 | { 5 | Task MyServiceMethod(); 6 | } -------------------------------------------------------------------------------- /Activity Checker/Services/AppSettings.cs: -------------------------------------------------------------------------------- 1 | class AppSettings 2 | { 3 | public string DbConnection { get; set; } 4 | public string LogPath { get; set; } 5 | } -------------------------------------------------------------------------------- /Activity Checker/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "DbConnection": "server=(localdb)\\mssqllocaldb;database=eplast;", 3 | "LogPath": "log.txt" 4 | } 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Services/WebChat/ChatService.cs: -------------------------------------------------------------------------------- 1 | 2 | 3 | namespace EPlast.BLL.Services.WebChat 4 | { 5 | class ChatService 6 | { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /EPlast/EPlast.Resources/AnnualReportControllerMessage.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.Resources 2 | { 3 | public class AnnualReportControllerMessage 4 | { 5 | } 6 | } -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Interfaces/PDF/IPDFCreator.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.BLL 2 | { 3 | internal interface IPdfCreator 4 | { 5 | byte[] GetPDFBytes(); 6 | } 7 | } -------------------------------------------------------------------------------- /EPlast/EPlast.Tests/Services/AboutBase/AboutBaseSectionDTO.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.Tests.Services.AboutBase 2 | { 3 | internal class AboutBaseSectionDTO 4 | { 5 | } 6 | } -------------------------------------------------------------------------------- /EPlast/EPlast.WebApi/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "URLs": { 3 | "BackEnd": "https://localhost:44350", 4 | "FrontEnd": "http://localhost:3000" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/Terms/AllowHtmlAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace EPlast.BLL.DTO.Terms 4 | { 5 | internal class AllowHtmlAttribute : Attribute 6 | { 7 | } 8 | } -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Interfaces/FileManager/IFileManager.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.BLL 2 | { 3 | public interface IFileManager 4 | { 5 | bool Exists(string path); 6 | } 7 | } -------------------------------------------------------------------------------- /EPlast/EPlast.Resources/CellType.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.Resources 2 | { 3 | public enum CellType 4 | { 5 | City, 6 | Region, 7 | Club 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/IDocumentDTO.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace EPlast.BLL.DTO 4 | { 5 | public interface IDocumentDto 6 | { 7 | DateTime? SubmitDate { get; set; } 8 | } 9 | } -------------------------------------------------------------------------------- /EPlast/EPlast.Resources/AnnualReportType.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.Resources 2 | { 3 | public enum ReportType 4 | { 5 | City, 6 | Club, 7 | Region 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /EPlast/EPlast.WebApi/appsettings.Staging.json: -------------------------------------------------------------------------------- 1 | { 2 | "URLs": { 3 | "BackEnd": "https://eplast.westeurope.cloudapp.azure.com", 4 | "FrontEnd": "https://eplast.westeurope.cloudapp.azure.com" 5 | } 6 | } -------------------------------------------------------------------------------- /EPlast/EPlast.WebApi/appsettings.Production.json: -------------------------------------------------------------------------------- 1 | { 2 | "URLs": { 3 | "BackEnd": "https://eplastprd.westeurope.cloudapp.azure.com", 4 | "FrontEnd": "https://eplastprd.westeurope.cloudapp.azure.com" 5 | } 6 | } -------------------------------------------------------------------------------- /manifests/test/service.yml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: eplastapi 5 | spec: 6 | type: ClusterIP 7 | ports: 8 | - port: 5000 9 | selector: 10 | app: eplastapi -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/Statistics/Region.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.BLL.DTO.Statistics 2 | { 3 | public class Region 4 | { 5 | public int ID { get; set; } 6 | public string RegionName { get; set; } 7 | } 8 | } -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/Club/ClubReportDTO.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.BLL.DTO.Club 2 | { 3 | public class ClubReportDto 4 | { 5 | public int ID { get; set; } 6 | public string Name { get; set; } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/UserProfiles/DistinctionDTO.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.BLL 2 | { 3 | public class DistinctionDto 4 | { 5 | public int Id { get; set; } 6 | public string Name { get; set; } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/Admin/AdminTypeDTO.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.BLL.DTO.Admin 2 | { 3 | public class AdminTypeDto 4 | { 5 | public int ID { get; set; } 6 | public string AdminTypeName { get; set; } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/Club/ClubDocumentTypeDTO.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.BLL.DTO.Club 2 | { 3 | public class ClubDocumentTypeDto 4 | { 5 | public int ID { get; set; } 6 | public string Name { get; set; } 7 | } 8 | } -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/AnnualReport/RegionDTO.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.BLL.DTO.AnnualReport 2 | { 3 | public class RegionDto 4 | { 5 | public int ID { get; set; } 6 | public string RegionName { get; set; } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/City/CityDocumentTypeDTO.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.BLL.DTO.City 2 | { 3 | public class CityDocumentTypeDto 4 | { 5 | public int ID { get; set; } 6 | public string Name { get; set; } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/Region/RegionNamesDTO.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.BLL.DTO.Region 2 | { 3 | public class RegionNamesDto 4 | { 5 | public int ID { get; set; } 6 | public string RegionName { get; set; } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Interfaces/PDF/IPDFDocument.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection.Metadata; 2 | 3 | namespace EPlast.BLL 4 | { 5 | internal interface IPdfDocument 6 | { 7 | PdfSharpCore.Pdf.PdfDocument GetDocument(); 8 | } 9 | } -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/User/IUserRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | 3 | namespace EPlast.DataAccess.Repositories 4 | { 5 | public interface IUserRepository : IRepositoryBase { } 6 | } 7 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/EventUser/EventTypeDTO.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.BLL.DTO.EventUser 2 | { 3 | public class EventTypeDto 4 | { 5 | public int ID { get; set; } 6 | public string EventTypeName { get; set; } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Queries/TermsOfUse/GetFirstRecordQuery.cs: -------------------------------------------------------------------------------- 1 | using EPlast.BLL.DTO.Terms; 2 | using MediatR; 3 | 4 | namespace EPlast.BLL.Queries.TermsOfUse 5 | { 6 | public class GetFirstRecordQuery : IRequest 7 | { 8 | } 9 | } -------------------------------------------------------------------------------- /EPlast/EPlast.Resources/AuthenticationErrors.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace EPlast.Resources 6 | { 7 | public class AuthenticationErrors 8 | { 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Interfaces/AboutBase/IAboutBaseWrapper.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.BLL.Interfaces.AboutBase 2 | { 3 | public interface IAboutBaseWrapper 4 | { 5 | IAboutBasePicturesManager AboutBasePicturesManager { get; } 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Interfaces/Logging/IGlobalLoggerService.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace EPlast.BLL.Interfaces.Logging 4 | { 5 | public interface IGlobalLoggerService 6 | { 7 | void LogError(Exception ex); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/User/IWorkRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | 3 | namespace EPlast.DataAccess.Repositories 4 | { 5 | public interface IWorkRepository : IRepositoryBase 6 | { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /EPlast/EPlast.WebApi/.config/dotnet-tools.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": 1, 3 | "isRoot": true, 4 | "tools": { 5 | "dotnet-ef": { 6 | "version": "3.1.6", 7 | "commands": [ 8 | "dotnet-ef" 9 | ] 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/Events/EventSectionDTO.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.BLL.DTO.Events 2 | { 3 | public class EventSectionDto 4 | { 5 | public int EventSectionId { get; set; } 6 | public string EventSectionName { get; set; } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/Statistics/StatisticsItem.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.BLL.DTO.Statistics 2 | { 3 | public class StatisticsItem 4 | { 5 | public StatisticsItemIndicator Indicator { get; set; } 6 | public int Value { get; set; } 7 | } 8 | } -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Services/HostURL/HostURLOptions.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.BLL.Services.HostURL 2 | { 3 | public class HostUrlOptions 4 | { 5 | public string BackEnd { get; set; } 6 | public string FrontEnd { get; set; } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/User/IDegreeRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | 3 | namespace EPlast.DataAccess.Repositories 4 | { 5 | public interface IDegreeRepository : IRepositoryBase 6 | { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/User/IGenderRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | 3 | namespace EPlast.DataAccess.Repositories 4 | { 5 | public interface IGenderRepository : IRepositoryBase 6 | { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /EPlast/EPlast.WebApi/Models/City/CityDocumentTypeViewModel.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.WebApi.Models.City 2 | { 3 | public class CityDocumentTypeViewModel 4 | { 5 | public int ID { get; set; } 6 | public string Name { get; set; } 7 | } 8 | } -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/AboutBase/SubsectionPicturesDTO.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.BLL.DTO.AboutBase 2 | { 3 | public class SubsectionPicturesDto 4 | { 5 | public int PictureId { get; set; } 6 | public string FileName { get; set; } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Interfaces/GoverningBodies/Announcement/IHtmlService.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.BLL.Services.GoverningBodies.Announcement 2 | { 3 | public interface IHtmlService 4 | { 5 | public bool IsHtmlTextEmpty(string htmlText); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Entities/City/CityLevel.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.DataAccess.Entities 2 | { 3 | public enum CityLevel 4 | { 5 | NotSpecified = 0, 6 | FirstLevel = 1, 7 | SecondLevel, 8 | Thirdlevel 9 | } 10 | } -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Entities/Region/RegionNamesObject.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.DataAccess.Entities 2 | { 3 | public class RegionNamesObject 4 | { 5 | public int ID { get; set; } 6 | public string RegionName { get; set; } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/User/IApproverRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | 3 | namespace EPlast.DataAccess.Repositories 4 | { 5 | public interface IApproverRepository:IRepositoryBase 6 | { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /EPlast/EPlast.Resources/AllowedDates.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | 4 | namespace EPlast.Resources 5 | { 6 | public static class AllowedDates 7 | { 8 | public static readonly DateTime LowLimitDate = new DateTime(1900, 1, 1); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/MediatrEntryPoint.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace EPlast.BLL 6 | { 7 | // Used to search for an assembly 8 | public class MediatrEntryPoint 9 | { 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/User/IEducationRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | 3 | namespace EPlast.DataAccess.Repositories 4 | { 5 | public interface IEducationRepository : IRepositoryBase 6 | { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/User/INationalityRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | 3 | namespace EPlast.DataAccess.Repositories 4 | { 5 | public interface INationalityRepository : IRepositoryBase 6 | { 7 | } 8 | } -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/User/IReligionRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | 3 | namespace EPlast.DataAccess.Repositories 4 | { 5 | public interface IReligionRepository : IRepositoryBase 6 | { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/User/IUpuDegreeRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | 3 | namespace EPlast.DataAccess.Repositories 4 | { 5 | public interface IUpuDegreeRepository : IRepositoryBase 6 | { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/ActiveMembership/PlastDegreeDTO.cs: -------------------------------------------------------------------------------- 1 | 2 | 3 | namespace EPlast.BLL.DTO.ActiveMembership 4 | { 5 | public class PlastDegreeDto 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/GoverningBody/GoverningBodyDocumentTypeDTO.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.BLL.DTO.GoverningBody 2 | { 3 | public class GoverningBodyDocumentTypeDto 4 | { 5 | public int Id { get; set; } 6 | public string Name { get; set; } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/Decision/IDecesionTarget.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | 3 | namespace EPlast.DataAccess.Repositories 4 | { 5 | public interface IDecesionTargetRepository : IRepositoryBase 6 | { 7 | } 8 | } -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/User/IParticipantRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | 3 | namespace EPlast.DataAccess.Repositories 4 | { 5 | public interface IParticipantRepository: IRepositoryBase 6 | { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/Events/EventCategoryCreateDTO.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.BLL.DTO.Events 2 | { 3 | public class EventCategoryCreateDto 4 | { 5 | public EventCategoryDto EventCategory { get; set; } 6 | public int EventTypeId { get; set; } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/Decision/IDocumentTemplate.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | 3 | namespace EPlast.DataAccess.Repositories 4 | { 5 | public interface IDocumentTemplateRepository : IRepositoryBase 6 | { 7 | } 8 | } -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/UserProfiles/PrecautionDTO.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.BLL 2 | { 3 | public class PrecautionDto 4 | { 5 | public int Id { get; set; } 6 | public string Name { get; set; } 7 | public int MonthsPeriod { get; set; } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Models/EmailModel.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.BLL.Models 2 | { 3 | public class EmailModel 4 | { 5 | public string Title { get; set; } 6 | public string Subject { get; set; } 7 | public string Message { get; set; } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/City/ICityMembersRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | 3 | namespace EPlast.DataAccess.Repositories.Contracts 4 | { 5 | public interface ICityMembersRepository : IRepositoryBase 6 | { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/Club/IClubMembersRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | 3 | namespace EPlast.DataAccess.Repositories.Contracts 4 | { 5 | public interface IClubMembersRepository : IRepositoryBase 6 | { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/User/IPrecautionRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities.UserEntities; 2 | 3 | namespace EPlast.DataAccess.Repositories 4 | { 5 | public interface IPrecautionRepository : IRepositoryBase 6 | { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/User/IUserProfileRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | 3 | namespace EPlast.DataAccess.Repositories.Contracts 4 | { 5 | public interface IUserProfileRepository : IRepositoryBase 6 | { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Queries/Precaution/GetAllPrecautionQuery.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using MediatR; 3 | 4 | namespace EPlast.BLL.Queries.Precaution 5 | { 6 | public class GetAllPrecautionQuery : IRequest> 7 | { 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/GoverningBody/Sector/ISectorRepository.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.DataAccess.Repositories.Interfaces.GoverningBody.Sector 2 | { 3 | public interface ISectorRepository : IRepositoryBase 4 | { 5 | } 6 | } -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/User/IDistinctionRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities.UserEntities; 2 | 3 | namespace EPlast.DataAccess.Repositories 4 | { 5 | public interface IDistinctionRepository : IRepositoryBase 6 | { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/User/IPlastDegreeRepository.cs: -------------------------------------------------------------------------------- 1 | 2 | using EPlast.DataAccess.Entities; 3 | 4 | namespace EPlast.DataAccess.Repositories 5 | { 6 | public interface IPlastDegreeRepository: IRepositoryBase 7 | { 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/City/ICityDocumentsRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | 3 | namespace EPlast.DataAccess.Repositories.Contracts 4 | { 5 | public interface ICityDocumentsRepository : IRepositoryBase 6 | { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/Club/IClubDocumentsRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | 3 | namespace EPlast.DataAccess.Repositories.Contracts 4 | { 5 | public interface IClubDocumentsRepository : IRepositoryBase 6 | { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/Events/IEventAdminRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities.Event; 2 | 3 | namespace EPlast.DataAccess.Repositories.Interfaces.Events 4 | { 5 | public interface IEventAdminRepository : IRepositoryBase 6 | { 7 | } 8 | } -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/User/IParticipantStatusRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | 3 | namespace EPlast.DataAccess.Repositories 4 | { 5 | public interface IParticipantStatusRepository : IRepositoryBase 6 | { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /EPlast/EPlast.WebApi/Models/GoverningBody/Sector/SectorDocumentTypeViewModel.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.WebApi.Models.GoverningBody.Sector 2 | { 3 | public class SectorDocumentTypeViewModel 4 | { 5 | public int Id { get; set; } 6 | public string Name { get; set; } 7 | } 8 | } -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Interfaces/Club/IClubMembers.cs: -------------------------------------------------------------------------------- 1 | using EPlast.BLL.DTO.Club; 2 | 3 | namespace EPlast.BLL.Interfaces.Club 4 | { 5 | public interface IClubMember 6 | { 7 | public string UserId { get; set; } 8 | public ClubUserDto User { get; set; } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/City/ICityDocumentTypeRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | 3 | namespace EPlast.DataAccess.Repositories.Contracts 4 | { 5 | public interface ICityDocumentTypeRepository : IRepositoryBase 6 | { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/City/ICityLegalStatusesRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | 3 | namespace EPlast.DataAccess.Repositories.Contracts 4 | { 5 | public interface ICityLegalStatusesRepository : IRepositoryBase 6 | { 7 | } 8 | } -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/Club/IClubDocumentTypeRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | 3 | namespace EPlast.DataAccess.Repositories.Contracts 4 | { 5 | public interface IClubDocumentTypeRepository : IRepositoryBase 6 | { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/Notification/INotificationTypeRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | 3 | namespace EPlast.DataAccess.Repositories 4 | { 5 | public interface INotificationTypeRepository : IRepositoryBase 6 | { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/Notification/IUserNotificationRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | 3 | namespace EPlast.DataAccess.Repositories 4 | { 5 | public interface IUserNotificationRepository : IRepositoryBase 6 | { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/User/IUserPlastDegreeRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | 3 | namespace EPlast.DataAccess.Repositories.Contracts 4 | { 5 | public interface IUserPlastDegreeRepository : IRepositoryBase 6 | { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /EPlast/EPlast.WebApi/Models/GoverningBody/GoverningBodyDocumentTypeViewModel.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.WebApi.Models.GoverningBody 2 | { 3 | public class GoverningBodyDocumentTypeViewModel 4 | { 5 | public int Id { get; set; } 6 | public string Name { get; set; } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Services/FileManager/FileManager.cs: -------------------------------------------------------------------------------- 1 | using System.IO; 2 | 3 | namespace EPlast.BLL 4 | { 5 | public class FileManager : IFileManager 6 | { 7 | public bool Exists(string path) 8 | { 9 | return File.Exists(path); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/AnnualReport/IMembersStatisticsRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | 3 | namespace EPlast.DataAccess.Repositories.Contracts 4 | { 5 | public interface IMembersStatisticsRepository : IRepositoryBase 6 | { 7 | } 8 | } -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/Club/IClubMemberHistoryRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | 3 | namespace EPlast.DataAccess.Repositories.Contracts 4 | { 5 | public interface IClubMemberHistoryRepository : IRepositoryBase 6 | { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/Club/IClubReportAdminsRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | 3 | namespace EPlast.DataAccess.Repositories.Interfaces.Club 4 | { 5 | public interface IClubReportAdminsRepository : IRepositoryBase 6 | { 7 | } 8 | } -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/Club/IClubReportCitiesRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | 3 | namespace EPlast.DataAccess.Repositories.Interfaces.Club 4 | { 5 | public interface IClubReportCitiesRepository: IRepositoryBase 6 | { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/Club/IClubReportMemberRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | 3 | namespace EPlast.DataAccess.Repositories.Interfaces.Club 4 | { 5 | public interface IClubReportMemberRepository : IRepositoryBase 6 | { 7 | } 8 | } -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/Events/IEventSectionRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities.Event; 2 | 3 | namespace EPlast.DataAccess.Repositories.Interfaces.Events 4 | { 5 | public interface IEventSectionRepository: IRepositoryBase 6 | { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/Events/EventGalleryDTO.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.BLL.DTO.Events 2 | { 3 | public class EventGalleryDto 4 | { 5 | public int GalleryId { get; set; } 6 | public string FileName { get; set; } 7 | public string EncodedData { get; set; } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/City/ICityAdministrationRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | 3 | namespace EPlast.DataAccess.Repositories.Contracts 4 | { 5 | public interface ICityAdministrationRepository : IRepositoryBase 6 | { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/Club/IClubAdministrationRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | 3 | namespace EPlast.DataAccess.Repositories.Contracts 4 | { 5 | public interface IClubAdministrationRepository : IRepositoryBase 6 | { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/Events/IEventTypeRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | using EPlast.DataAccess.Entities.Event; 3 | 4 | namespace EPlast.DataAccess.Repositories 5 | { 6 | public interface IEventTypeRepository : IRepositoryBase 7 | { 8 | } 9 | } -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/Region/IRegionFollowersRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | 3 | namespace EPlast.DataAccess.Repositories.Interfaces.Region 4 | { 5 | public interface IRegionFollowersRepository : IRepositoryBase 6 | { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/Club/ClubReportCityMembersDTO.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.BLL.DTO.Club 2 | { 3 | public class ClubReportCityMembersDto 4 | { 5 | public int ID { get; set; } 6 | public int CityId { get; set; } 7 | public ClubReportCityDto City { get; set; } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Interfaces/EmailSending/INewPlastMemberEmailGreetingService.cs: -------------------------------------------------------------------------------- 1 | using System.Threading.Tasks; 2 | 3 | namespace EPlast.BLL.Interfaces 4 | { 5 | public interface INewPlastMemberEmailGreetingService 6 | { 7 | Task NotifyNewPlastMembersAndCityAdminsAsync(); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Interfaces/Home/EventUser/IEventAdministrationTypeManager.cs: -------------------------------------------------------------------------------- 1 | using System.Threading.Tasks; 2 | 3 | namespace EPlast.BLL.Interfaces.EventUser 4 | { 5 | public interface IEventAdministrationTypeManager 6 | { 7 | Task GetTypeIdAsync(string typeName); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/Events/IEventRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | using EPlast.DataAccess.Entities.Event; 3 | 4 | namespace EPlast.DataAccess.Repositories 5 | { 6 | public interface IEventRepository : IRepositoryBase 7 | { 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/Region/IRegionAdministrationRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | 3 | namespace EPlast.DataAccess.Repositories.Contracts 4 | { 5 | public interface IRegionAdministrationRepository : IRepositoryBase 6 | { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /EPlast/EPlast.WebApi/Models/Region/RegionViewModel.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.WebApi.Models.Region 2 | { 3 | public class RegionViewModel 4 | { 5 | public int ID { get; set; } 6 | public string RegionName { get; set; } 7 | public string Description { get; set; } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/Events/IEventCategoryTypeRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities.Event; 2 | 3 | namespace EPlast.DataAccess.Repositories.Interfaces.Events 4 | { 5 | public interface IEventCategoryTypeRepository : IRepositoryBase 6 | { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/Events/IEventGallaryRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | using EPlast.DataAccess.Entities.Event; 3 | 4 | namespace EPlast.DataAccess.Repositories 5 | { 6 | public interface IEventGallaryRepository : IRepositoryBase 7 | { 8 | } 9 | } -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/Events/IEventStatusRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | using EPlast.DataAccess.Entities.Event; 3 | 4 | namespace EPlast.DataAccess.Repositories 5 | { 6 | public interface IEventStatusRepository : IRepositoryBase 7 | { 8 | } 9 | } -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/Events/IGallaryRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | using EPlast.DataAccess.Entities.Event; 3 | 4 | namespace EPlast.DataAccess.Repositories 5 | { 6 | public interface IGallaryRepository : IRepositoryBase 7 | { 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /EPlast/EPlast.Resources/UserGenders.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.Resources 2 | { 3 | public static class UserGenders 4 | { 5 | public const string Male = "Чоловік"; 6 | public const string Female = "Жінка"; 7 | public const string Undefined = "Не маю бажання вказувати"; 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/Events/EventCategoryDTO.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.BLL.DTO.Events 2 | { 3 | public class EventCategoryDto 4 | { 5 | public int EventCategoryId { get; set; } 6 | public string EventCategoryName { get; set; } 7 | public int EventSectionId { get; set; } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/Statistics/City.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.BLL.DTO.Statistics 2 | { 3 | public class City 4 | { 5 | public int ID { get; set; } 6 | public string Name { get; set; } 7 | 8 | public int RegionId { get; set; } 9 | public Region Region { get; set; } 10 | } 11 | } -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/Statistics/CityStatistics.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace EPlast.BLL.DTO.Statistics 4 | { 5 | public class CityStatistics 6 | { 7 | public City City { get; set; } 8 | public IEnumerable YearStatistics { get; set; } 9 | } 10 | } -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/Statistics/YearStatistics.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace EPlast.BLL.DTO.Statistics 4 | { 5 | public class YearStatistics 6 | { 7 | public int Year { get; set; } 8 | public IEnumerable StatisticsItems { get; set; } 9 | } 10 | } -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Interfaces/Decesion/IDecisionVmInitializer.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore.Mvc.Rendering; 2 | using System.Collections.Generic; 3 | 4 | namespace EPlast.BLL 5 | { 6 | public interface IDecisionVmInitializer 7 | { 8 | IEnumerable GetDecesionStatusTypes(); 9 | } 10 | } -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/Club/IClubReportPlastDegreesRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | 3 | namespace EPlast.DataAccess.Repositories.Interfaces.Club 4 | { 5 | public interface IClubReportPlastDegreesRepository: IRepositoryBase 6 | { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/Events/IEventCategoryRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | using EPlast.DataAccess.Entities.Event; 3 | 4 | namespace EPlast.DataAccess.Repositories 5 | { 6 | public interface IEventCategoryRepository : IRepositoryBase 7 | { 8 | } 9 | } -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/Statistics/RegionStatistics.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace EPlast.BLL.DTO.Statistics 4 | { 5 | public class RegionStatistics 6 | { 7 | public Region Region { get; set; } 8 | public IEnumerable YearStatistics { get; set; } 9 | } 10 | } -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/AboutBase/IPicturesRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | using EPlast.DataAccess.Entities.AboutBase; 3 | 4 | namespace EPlast.DataAccess.Repositories 5 | { 6 | public interface IPicturesRepository : IRepositoryBase 7 | { 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/GoverningBody/IOrganizationRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities.GoverningBody; 2 | 3 | namespace EPlast.DataAccess.Repositories.Interfaces.GoverningBody 4 | { 5 | public interface IOrganizationRepository : IRepositoryBase 6 | { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/Terms/ITermsRepository.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using EPlast.DataAccess.Entities; 4 | 5 | namespace EPlast.DataAccess.Repositories.Contracts 6 | { 7 | public interface ITermsRepository: IRepositoryBase 8 | { 9 | } 10 | } -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/Club/ClubReportCityDTO.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace EPlast.BLL.DTO.Club 6 | { 7 | public class ClubReportCityDto 8 | { 9 | public int ID { get; set; } 10 | public string Name { get; set; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Interfaces/CityClub/CityClubBase.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore.Http; 2 | 3 | namespace EPlast.BLL.Services.CityClub 4 | { 5 | public interface ICityClubBase 6 | { 7 | string GetChangedPhoto(string path, IFormFile file, string oldImageName, string webPath, string uniqueId); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/AboutBase/ISubsectionRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | using EPlast.DataAccess.Entities.AboutBase; 3 | 4 | namespace EPlast.DataAccess.Repositories 5 | { 6 | public interface ISubsectionRepository : IRepositoryBase 7 | { 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/Club/IClubLegalStatusesRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | 3 | 4 | namespace EPlast.DataAccess.Repositories.Interfaces.Club 5 | { 6 | public interface IClubLegalStatusesRepository: IRepositoryBase 7 | { 8 | 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/Events/IEventAdministrationTypeRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities.Event; 2 | 3 | namespace EPlast.DataAccess.Repositories.Interfaces.Events 4 | { 5 | public interface IEventAdministrationTypeRepository : IRepositoryBase 6 | { 7 | } 8 | } -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Queries/Distinction/GetAllDistinctionQuery.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using MediatR; 5 | 6 | namespace EPlast.BLL.Queries.Distinction 7 | { 8 | public class GetAllDistinctionQuery : IRequest> 9 | { 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/Events/IEventAdministrationRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | using EPlast.DataAccess.Entities.Event; 3 | 4 | namespace EPlast.DataAccess.Repositories 5 | { 6 | public interface IEventAdministrationRepository : IRepositoryBase 7 | { 8 | } 9 | } -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/Decision/DecisionWrapperDTO.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using Microsoft.AspNetCore.Http; 3 | 4 | namespace EPlast.BLL.DTO 5 | { 6 | public class DecisionWrapperDto 7 | { 8 | public DecisionDto Decision { get; set; } 9 | public string FileAsBase64 { get; set; } 10 | } 11 | } -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/Region/RegionsStatusTypeDTO.cs: -------------------------------------------------------------------------------- 1 | using System.ComponentModel; 2 | 3 | namespace EPlast.BLL.DTO 4 | { 5 | public enum RegionsStatusTypeDto 6 | { 7 | [Description("Округа")] 8 | Region, 9 | 10 | [Description("Крайовий Провід Пласту")] 11 | RegionBoard, 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/UserProfiles/GenderDTO.cs: -------------------------------------------------------------------------------- 1 | using System.ComponentModel.DataAnnotations; 2 | 3 | namespace EPlast.BLL.DTO.UserProfiles 4 | { 5 | public class GenderDto 6 | { 7 | public int ID { get; set; } 8 | 9 | [Display(Name = "Стать")] 10 | public string Name { get; set; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Interfaces/EmailSending/IEmailReminderService.cs: -------------------------------------------------------------------------------- 1 | using System.Threading.Tasks; 2 | 3 | namespace EPlast.BLL.Interfaces 4 | { 5 | public interface IEmailReminderService 6 | { 7 | Task JoinCityReminderAsync(); 8 | 9 | Task RemindCityAdminsToApproveFollowers(); 10 | 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/Blank/IAchievementDocumentsRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities.Blank; 2 | 3 | namespace EPlast.DataAccess.Repositories.Interfaces.Blank 4 | { 5 | public interface IAchievementDocumentsRepository : IRepositoryBase 6 | { 7 | 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /manifests/test/redis-master-service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: redis-master 5 | labels: 6 | app: redis 7 | role: master 8 | tier: backend 9 | spec: 10 | ports: 11 | - port: 6379 12 | targetPort: 6379 13 | selector: 14 | app: redis 15 | role: master 16 | tier: backend -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/EventUser/UserInfoDTO.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.BLL.DTO.EventUser 2 | { 3 | public class UserInfoDto 4 | { 5 | public string Id { get; set; } 6 | public string FirstName { get; set; } 7 | public string LastName { get; set; } 8 | public string UserName { get; set; } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Entities/Region/RegionObject.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.DataAccess.Entities 2 | { 3 | public class RegionObject 4 | { 5 | public int ID { get; set; } 6 | public string RegionName { get; set; } 7 | public string Logo { get; set; } 8 | public int Count { get; set; } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/Blank/IBlankBiographyDocumentsRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities.Blank; 2 | 3 | namespace EPlast.DataAccess.Repositories.Interfaces.Blank 4 | { 5 | public interface IBlankBiographyDocumentsRepository : IRepositoryBase 6 | { 7 | 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/Blank/IExtractFromUPUDocumentsRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities.Blank; 2 | 3 | namespace EPlast.DataAccess.Repositories.Interfaces.Blank 4 | { 5 | public interface IExtractFromUpuDocumentsRepository : IRepositoryBase 6 | { 7 | 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/City/CityForAdministrationDTO.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.BLL.DTO.City 2 | { 3 | public class CityForAdministrationDto 4 | { 5 | public int ID { get; set; } 6 | public string Name { get; set; } 7 | public bool HasReport { get; set; } 8 | public bool IsActive { get; set; } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/Club/ClubForAdministrationDTO.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.BLL.DTO.Club 2 | { 3 | public class ClubForAdministrationDto 4 | { 5 | public int ID { get; set; } 6 | public string Name { get; set; } 7 | public bool HasReport { get; set; } 8 | public bool IsActive { get; set; } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/Events/EventAdminDTO.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.BLL.DTO.Events 2 | { 3 | public class EventAdminDto 4 | { 5 | public string UserId { get; set; } 6 | public string FullName { get; set; } 7 | public string AdminType { get; set; } 8 | public string AvatarUrl { get; set; } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/Notification/NotificationTypeDTO.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace EPlast.BLL.DTO.Notification 6 | { 7 | public class NotificationTypeDto 8 | { 9 | public int Id { get; set; } 10 | public string Name { get; set; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Interfaces/RegionBoard/IRegionsBoardService.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Threading.Tasks; 3 | 4 | namespace EPlast.BLL.Interfaces.RegionBoard 5 | { 6 | public interface IRegionsBoardService 7 | { 8 | Task> GetUserAccessAsync(string userId); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/GoverningBody/Sector/ISectorDocumentsRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities.GoverningBody.Sector; 2 | 3 | namespace EPlast.DataAccess.Repositories.Interfaces.GoverningBody.Sector 4 | { 5 | public interface ISectorDocumentsRepository : IRepositoryBase 6 | { 7 | } 8 | } -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Entities/Region/RegionsStatusType.cs: -------------------------------------------------------------------------------- 1 | using System.ComponentModel; 2 | 3 | namespace EPlast.DataAccess.Entities 4 | { 5 | public enum RegionsStatusType 6 | { 7 | [Description("Округа")] 8 | Region, 9 | 10 | [Description("Крайовий Провід Пласту")] 11 | RegionBoard, 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/AboutBase/ISubsectionPicturesRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | using EPlast.DataAccess.Entities.AboutBase; 3 | 4 | namespace EPlast.DataAccess.Repositories 5 | { 6 | public interface ISubsectionPicturesRepository : IRepositoryBase 7 | { 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/GoverningBody/IGoverningBodyDocumentsRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities.GoverningBody; 2 | 3 | namespace EPlast.DataAccess.Repositories.Interfaces.GoverningBody 4 | { 5 | public interface IGoverningBodyDocumentsRepository : IRepositoryBase 6 | { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/GoverningBody/Sector/ISectorDocumentTypeRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities.GoverningBody.Sector; 2 | 3 | namespace EPlast.DataAccess.Repositories.Interfaces.GoverningBody.Sector 4 | { 5 | public interface ISectorDocumentTypeRepository : IRepositoryBase 6 | { 7 | } 8 | } -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/User/IUserPrecautionRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities.UserEntities; 2 | using System.Collections.Generic; 3 | 4 | namespace EPlast.DataAccess.Repositories 5 | { 6 | public interface IUserPrecautionRepository : IRepositoryBase 7 | { 8 | 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/ActiveMembership/UserPlastDegreePutDTO.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace EPlast.BLL.DTO.ActiveMembership 4 | { 5 | public class UserPlastDegreePutDto 6 | { 7 | public string UserId { get; set; } 8 | public int PlastDegreeId { get; set; } 9 | public DateTime EndDate { get; set; } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/AboutBase/ISectionRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | using EPlast.DataAccess.Entities.AboutBase; 3 | using System.Threading.Tasks; 4 | 5 | namespace EPlast.DataAccess.Repositories 6 | { 7 | public interface ISectionRepository : IRepositoryBase
8 | { 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/GoverningBody/IGoverningBodyDocumentTypeRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities.GoverningBody; 2 | 3 | namespace EPlast.DataAccess.Repositories.Interfaces.GoverningBody 4 | { 5 | public interface IGoverningBodyDocumentTypeRepository : IRepositoryBase 6 | { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/User/IUserDistinctionRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities.UserEntities; 2 | using System.Collections.Generic; 3 | 4 | namespace EPlast.DataAccess.Repositories 5 | { 6 | public interface IUserDistinctionRepository : IRepositoryBase 7 | { 8 | 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Commands/City/RemoveCityCommand.cs: -------------------------------------------------------------------------------- 1 | using MediatR; 2 | 3 | namespace EPlast.BLL.Commands.City 4 | { 5 | public class RemoveCityCommand : IRequest 6 | { 7 | public int CityId { get; set; } 8 | 9 | public RemoveCityCommand(int cityId) 10 | { 11 | CityId = cityId; 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/City/CityObjectDTO.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace EPlast.BLL.DTO.City 6 | { 7 | public class CityObjectDto 8 | { 9 | public int ID { get; set; } 10 | public string Name { get; set; } 11 | public string Logo { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/Club/ClubObjectDTO.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace EPlast.BLL.DTO.Club 6 | { 7 | public class ClubObjectDto 8 | { 9 | public int Id { get; set; } 10 | public string Name { get; set; } 11 | public string Logo { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Queries/Decision/GetDecisionListAsyncQuery.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using EPlast.BLL.DTO; 5 | using MediatR; 6 | 7 | namespace EPlast.BLL.Queries.Decision 8 | { 9 | public class GetDecisionListAsyncQuery : IRequest> 10 | { 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/Club/IClubRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | 6 | namespace EPlast.DataAccess.Repositories.Contracts 7 | { 8 | public interface IClubRepository : IRepositoryBase 9 | { 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/EducatorsStaff/IEducatorsStaffRepository.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using EPlast.DataAccess.Entities.EducatorsStaff; 3 | 4 | namespace EPlast.DataAccess.Repositories 5 | { 6 | public interface IEducatorsStaffRepository:IRepositoryBase 7 | { 8 | 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/GoverningBody/Sector/ISectorAdministrationRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities.GoverningBody.Sector; 2 | 3 | namespace EPlast.DataAccess.Repositories.Interfaces.GoverningBody.Sector 4 | { 5 | public interface ISectorAdministrationRepository : IRepositoryBase 6 | { 7 | } 8 | } -------------------------------------------------------------------------------- /EPlast/EPlast.WebApi/Models/Admin/CitiesAdminsViewModel.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using EPlast.BLL.DTO.City; 3 | 4 | namespace EPlast.WebApi.Models.Admin 5 | { 6 | public class CitiesAdminsViewModel 7 | { 8 | public IEnumerable Cities { get; set; } 9 | public string CityName { get; set; } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /EPlast/EPlast.WebApi/Models/Approver/ApproverViewModel.cs: -------------------------------------------------------------------------------- 1 | using EPlast.WebApi.Models.User; 2 | 3 | namespace EPlast.WebApi.Models.Approver 4 | { 5 | public class ApproverViewModel 6 | { 7 | public int ID { get; set; } 8 | public string UserID { get; set; } 9 | public UserInfoViewModel User { get; set; } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Commands/City/ArchiveCityCommand.cs: -------------------------------------------------------------------------------- 1 | using MediatR; 2 | 3 | namespace EPlast.BLL.Commands.City 4 | { 5 | public class ArchiveCityCommand : IRequest 6 | { 7 | public int CityId { get; set; } 8 | 9 | public ArchiveCityCommand(int cityId) 10 | { 11 | CityId = cityId; 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/EventUser/EventAdministrationDTO.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.BLL.DTO.EventUser 2 | { 3 | public class EventAdministrationDto 4 | { 5 | public string UserId { get; set; } 6 | public string FullName { get; set; } 7 | public string Email { get; set; } 8 | public UserInfoDto User { get; set; } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/GoverningBody/Sector/SectorDocumentTypeDTO.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace EPlast.BLL.DTO.GoverningBody.Sector 6 | { 7 | public class SectorDocumentTypeDto 8 | { 9 | public int Id { get; set; } 10 | public string Name { get; set; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Queries/Precaution/GetPrecautionQuery.cs: -------------------------------------------------------------------------------- 1 | using MediatR; 2 | 3 | namespace EPlast.BLL.Queries.Precaution 4 | { 5 | public class GetPrecautionQuery : IRequest 6 | { 7 | public int Id { get; set; } 8 | public GetPrecautionQuery(int id) 9 | { 10 | Id = id; 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Settings/EmailServiceSettings.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.BLL.Settings 2 | { 3 | public class EmailServiceSettings 4 | { 5 | public string SMTPServer { get; set; } 6 | public int Port { get; set; } 7 | public string SMTPServerLogin { get; set; } 8 | public string SMTPServerPassword { get; set; } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/GoverningBody/IGoverningBodyAdministrationRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities.GoverningBody; 2 | 3 | namespace EPlast.DataAccess.Repositories.Interfaces.GoverningBody 4 | { 5 | public interface IGoverningBodyAdministrationRepository : IRepositoryBase 6 | { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/User/IConfirmedUserRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace EPlast.DataAccess.Repositories 7 | { 8 | public interface IConfirmedUserRepository : IRepositoryBase 9 | { 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Commands/City/UnArchiveCityCommand.cs: -------------------------------------------------------------------------------- 1 | using MediatR; 2 | 3 | namespace EPlast.BLL.Commands.City 4 | { 5 | public class UnArchiveCityCommand : IRequest 6 | { 7 | public int CityId { get; set; } 8 | 9 | public UnArchiveCityCommand(int cityId) 10 | { 11 | CityId = cityId; 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Entities/Event/EventGallary.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.DataAccess.Entities.Event 2 | { 3 | public class EventGallary 4 | { 5 | public int EventID { get; set; } 6 | public Entities.Event.Event Event { get; set; } 7 | public int GallaryID { get; set; } 8 | public Gallary Gallary { get; set; } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/Blank/ICourseRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities.Course; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace EPlast.DataAccess.Repositories.Interfaces.Blank 7 | { 8 | public interface ICourseRepository : IRepositoryBase 9 | { 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/Decision/DecisionTargetDTO.cs: -------------------------------------------------------------------------------- 1 | using System.ComponentModel.DataAnnotations; 2 | 3 | namespace EPlast.BLL.DTO 4 | { 5 | public class DecisionTargetDto 6 | { 7 | public int ID { get; set; } 8 | 9 | [Required(ErrorMessage = "Поле TargetName є обов'язковим")] 10 | public string TargetName { get; set; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/Region/RegionObjectsDTO.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace EPlast.BLL.DTO.Region 6 | { 7 | public class RegionObjectsDto 8 | { 9 | public int ID { get; set; } 10 | public string RegionName { get; set; } 11 | public string Logo { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Entities/Club/ClubObject.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace EPlast.DataAccess.Entities 6 | { 7 | public class ClubObject 8 | { 9 | public int ID { get; set; } 10 | public string Name { get; set; } 11 | public string Logo { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/Approver/ApproveProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO; 3 | 4 | namespace EPlast.BLL.Mapping.Approver 5 | { 6 | public class ApproverProfile : Profile 7 | { 8 | public ApproverProfile() 9 | { 10 | CreateMap().ReverseMap(); 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Models/BlankModel.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | 3 | namespace EPlast.BLL 4 | { 5 | public class BlankModel 6 | { 7 | public User User { get; set; } 8 | public UserProfile UserProfile { get; set; } 9 | public CityMembers CityMembers { get; set; } 10 | public ClubMembers ClubMembers { get; set; } 11 | } 12 | } -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Queries/City/GetCityAdminsIdsQuery.cs: -------------------------------------------------------------------------------- 1 | using MediatR; 2 | 3 | namespace EPlast.BLL.Queries.City 4 | { 5 | public class GetCityAdminsIdsQuery : IRequest 6 | { 7 | public int CityId { get; set; } 8 | 9 | public GetCityAdminsIdsQuery(int cityId) 10 | { 11 | CityId = cityId; 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Queries/City/PlastMemberCheckQuery.cs: -------------------------------------------------------------------------------- 1 | using MediatR; 2 | 3 | namespace EPlast.BLL.Queries.City 4 | { 5 | public class PlastMemberCheckQuery : IRequest 6 | { 7 | public string UserId { get; set; } 8 | 9 | public PlastMemberCheckQuery(string userId) 10 | { 11 | UserId = userId; 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/User/IUserMembershipDatesRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace EPlast.DataAccess.Repositories 7 | { 8 | public interface IUserMembershipDatesRepository : IRepositoryBase 9 | { 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /EPlast/EPlast.Resources/UserPrecautionStatus.cs: -------------------------------------------------------------------------------- 1 | using System.ComponentModel; 2 | 3 | namespace EPlast.Resources 4 | { 5 | public enum UserPrecautionStatus 6 | { 7 | [Description("Прийнято")] 8 | Accepted, 9 | [Description("Потверджено")] 10 | Confirmed, 11 | [Description("Скасовано")] 12 | Cancelled 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Commands/City/EditCityCommand.cs: -------------------------------------------------------------------------------- 1 | using EPlast.BLL.DTO.City; 2 | using MediatR; 3 | 4 | namespace EPlast.BLL.Commands.City 5 | { 6 | public class EditCityCommand : IRequest 7 | { 8 | public CityDto City { get; set; } 9 | 10 | public EditCityCommand(CityDto city) 11 | { 12 | City = city; 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/MethodicDocument/MethodicDocumentWraperDTO.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace EPlast.BLL.DTO 6 | { 7 | public class MethodicDocumentWraperDto 8 | { 9 | public MethodicDocumentDto MethodicDocument { get; set; } 10 | public string FileAsBase64 { get; set; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/Notification/ConnectionDTO.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Net.WebSockets; 4 | using System.Text; 5 | 6 | namespace EPlast.BLL.DTO.Notification 7 | { 8 | public class ConnectionDto 9 | { 10 | public string ConnectionId { get; set; } 11 | public WebSocket WebSocket { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/UserProfiles/ApproverDTO.cs: -------------------------------------------------------------------------------- 1 | using EPlast.BLL.DTO.UserProfiles; 2 | 3 | namespace EPlast.BLL.DTO 4 | { 5 | public class ApproverDto 6 | { 7 | public int ID { get; set; } 8 | public string UserID { get; set; } 9 | public UserDto User { get; set; } 10 | public ConfirmedUserDto ConfirmedUser { get; set; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Interfaces/Events/IEventAdminManager.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities.Event; 2 | using System.Collections.Generic; 3 | using System.Threading.Tasks; 4 | 5 | namespace EPlast.BLL.Interfaces.Events 6 | { 7 | public interface IEventAdminManager 8 | { 9 | Task> GetEventAdminsByUserIdAsync(string userId); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Interfaces/PDF/IPDFSettings.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.BLL 2 | { 3 | public interface IPdfSettings 4 | { 5 | string Title { get; set; } 6 | string Subject { get; set; } 7 | string Author { get; set; } 8 | string FontName { get; set; } 9 | string StyleName { get; set; } 10 | string ImagePath { get; set; } 11 | } 12 | } -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/User/UserMappingProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.UserProfiles; 3 | 4 | namespace EPlast.BLL.Mapping.User 5 | { 6 | public class UserMappingProfile : Profile 7 | { 8 | public UserMappingProfile() 9 | { 10 | CreateMap().ReverseMap(); 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Queries/City/GetCityIdByUserIdQuery.cs: -------------------------------------------------------------------------------- 1 | using MediatR; 2 | 3 | namespace EPlast.BLL.Queries.City 4 | { 5 | public class GetCityIdByUserIdQuery : IRequest 6 | { 7 | public string UserId { get; set; } 8 | 9 | public GetCityIdByUserIdQuery(string userId) 10 | { 11 | UserId = userId; 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Queries/Club/GetByIdQuery.cs: -------------------------------------------------------------------------------- 1 | using EPlast.BLL.DTO.Club; 2 | using MediatR; 3 | 4 | namespace EPlast.BLL.Queries.Club 5 | { 6 | public class GetByIdQuery : IRequest 7 | { 8 | public int ClubId { get; set; } 9 | 10 | public GetByIdQuery(int clubId) 11 | { 12 | ClubId = clubId; 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Queries/Club/GetCountUsersPerYearQuery.cs: -------------------------------------------------------------------------------- 1 | using MediatR; 2 | 3 | namespace EPlast.BLL.Queries.Club 4 | { 5 | public class GetCountUsersPerYearQuery : IRequest 6 | { 7 | public int ClubId { get; set; } 8 | 9 | public GetCountUsersPerYearQuery(int clubId) 10 | { 11 | ClubId = clubId; 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.Resources/AllowedRolesToBeAdminOfEvent.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.Resources 2 | { 3 | public static class AllowedRolesToBeAdminOfEvent 4 | { 5 | public static string[] Roles => new[] { Resources.Roles.Admin, Resources.Roles.GoverningBodyHead, Resources.Roles.CityHead, Resources.Roles.OkrugaHead, Resources.Roles.KurinHead, Resources.Roles.PlastMember }; 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/Decision/DecisionStatusTypeDTO.cs: -------------------------------------------------------------------------------- 1 | using System.ComponentModel; 2 | 3 | namespace EPlast.BLL.DTO 4 | { 5 | public enum DecisionStatusTypeDto 6 | { 7 | [Description("У розгляді")] 8 | InReview, 9 | 10 | [Description("Потверджено")] 11 | Confirmed, 12 | 13 | [Description("Скасовано")] 14 | Canceled 15 | } 16 | } -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Queries/City/GetCityLogoBase64Query.cs: -------------------------------------------------------------------------------- 1 | using MediatR; 2 | 3 | namespace EPlast.BLL.Queries.City 4 | { 5 | public class GetCityLogoBase64Query : IRequest 6 | { 7 | public string LogoName { get; set; } 8 | 9 | public GetCityLogoBase64Query(string logoName) 10 | { 11 | LogoName = logoName; 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Queries/Decision/GetDecisionAsyncQuery.cs: -------------------------------------------------------------------------------- 1 | using EPlast.BLL.DTO; 2 | using MediatR; 3 | namespace EPlast.BLL.Queries.Decision 4 | { 5 | public class GetDecisionAsyncQuery : IRequest 6 | { 7 | public int Id { get; set; } 8 | public GetDecisionAsyncQuery(int id) 9 | { 10 | Id = id; 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Entities/AboutBase/SubsectionPictures.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.DataAccess.Entities.AboutBase 2 | { 3 | public class SubsectionPictures 4 | { 5 | public int SubsectionID { get; set; } 6 | public Subsection Subsection { get; set; } 7 | public int PictureID { get; set; } 8 | public Pictures Pictures { get; set; } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/Events/IEventFeedbackRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities.Event; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace EPlast.DataAccess.Repositories.Interfaces.Events 7 | { 8 | public interface IEventFeedbackRepository : IRepositoryBase 9 | { 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /EPlast/EPlast.WebApi/Models/UserModels/UserProfileFields/DegreeViewModel.cs: -------------------------------------------------------------------------------- 1 | using System.ComponentModel.DataAnnotations; 2 | 3 | namespace EPlast.WebApi.Models.UserModels.UserProfileFields 4 | { 5 | public class DegreeViewModel 6 | { 7 | public int ID { get; set; } 8 | [Display(Name = "Ступінь")] 9 | public string Name { get; set; } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/AnnualReport/UserDTO.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.BLL.DTO.AnnualReport 2 | { 3 | public class UserDto 4 | { 5 | public string Id { get; set; } 6 | public string FirstName { get; set; } 7 | public string LastName { get; set; } 8 | 9 | public string Email { get; set; } 10 | public string PhoneNumber { get; set; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Interfaces/Resources/IResources.cs: -------------------------------------------------------------------------------- 1 | 2 | using EPlast.Resources; 3 | using Microsoft.Extensions.Localization; 4 | 5 | namespace EPlast.BLL.Interfaces.Resources 6 | { 7 | public interface IResources 8 | { 9 | IStringLocalizer ResourceForErrors { get; } 10 | IStringLocalizer ResourceForGender { get; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/Precautions/PrecautionProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.DataAccess.Entities.UserEntities; 3 | 4 | namespace EPlast.BLL.Mapping.Precautions 5 | { 6 | class PrecautionProfile : Profile 7 | { 8 | public PrecautionProfile() 9 | { 10 | CreateMap().ReverseMap(); 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Queries/City/GetCityByIdQuery.cs: -------------------------------------------------------------------------------- 1 | using EPlast.BLL.DTO.City; 2 | using MediatR; 3 | 4 | namespace EPlast.BLL.Queries.City 5 | { 6 | public class GetCityByIdQuery : IRequest 7 | { 8 | public int CityId { get; set; } 9 | 10 | public GetCityByIdQuery(int cityId) 11 | { 12 | CityId = cityId; 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Queries/Precaution/CheckIfAdminQuery.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | using MediatR; 3 | 4 | namespace EPlast.BLL.Queries.Precaution 5 | { 6 | public class CheckIfAdminQuery: IRequest 7 | { 8 | public User User { get; set; } 9 | public CheckIfAdminQuery(User user) 10 | { 11 | User = user; 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Realizations/User/WorkRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | 3 | namespace EPlast.DataAccess.Repositories 4 | { 5 | public class WorkRepository : RepositoryBase, IWorkRepository 6 | { 7 | public WorkRepository(EPlastDBContext dbContext) 8 | : base(dbContext) 9 | { 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Commands/Decision/DeleteDecisionAsyncCommand.cs: -------------------------------------------------------------------------------- 1 | using EPlast.BLL.DTO; 2 | using MediatR; 3 | 4 | namespace EPlast.BLL.Commands.Decision 5 | { 6 | public class DeleteDecisionAsyncCommand: IRequest 7 | { 8 | public int Id { get; set; } 9 | public DeleteDecisionAsyncCommand(int id) 10 | { 11 | Id = id; 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/Distinctions/DistinctionProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.DataAccess.Entities.UserEntities; 3 | 4 | namespace EPlast.BLL.Mapping.Distinctions 5 | { 6 | class DistinctionProfile : Profile 7 | { 8 | public DistinctionProfile() 9 | { 10 | CreateMap().ReverseMap(); 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/UserProfile/WorkProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.UserProfiles; 3 | using EPlast.DataAccess.Entities; 4 | 5 | namespace EPlast.BLL.Mapping.UserProfile 6 | { 7 | public class WorkProfile : Profile 8 | { 9 | public WorkProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Entities/Event/EventCategoryType.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.DataAccess.Entities.Event 2 | { 3 | public class EventCategoryType 4 | { 5 | public int EventTypeId { get; set; } 6 | public EventType EventType { get; set; } 7 | 8 | public int EventCategoryId { get; set; } 9 | public EventCategory EventCategory { get; set; } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/Region/IRegionDocumentRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace EPlast.DataAccess.Repositories.Interfaces.Region 7 | { 8 | public interface IRegionDocumentRepository:IRepositoryBase 9 | { 10 | 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Commands/City/UploadCityPhotoCommand.cs: -------------------------------------------------------------------------------- 1 | using EPlast.BLL.DTO.City; 2 | using MediatR; 3 | 4 | namespace EPlast.BLL.Commands.City 5 | { 6 | public class UploadCityPhotoCommand : IRequest 7 | { 8 | public CityDto City { get; set; } 9 | 10 | public UploadCityPhotoCommand(CityDto city) 11 | { 12 | City = city; 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Interfaces/FileManager/IDirectoryManager.cs: -------------------------------------------------------------------------------- 1 | using System.IO; 2 | 3 | namespace EPlast.BLL 4 | { 5 | public interface IDirectoryManager 6 | { 7 | bool Exists(string path); 8 | 9 | DirectoryInfo CreateDirectory(string path); 10 | 11 | void Move(string sourceDirName, string destDirName); 12 | 13 | string[] GetFiles(string path); 14 | } 15 | } -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Interfaces/PDF/IPDFService.cs: -------------------------------------------------------------------------------- 1 | using System.Threading.Tasks; 2 | 3 | namespace EPlast.BLL 4 | 5 | { 6 | public interface IPdfService 7 | { 8 | Task DecisionCreatePDFAsync(int decisionId); 9 | 10 | Task MethodicDocumentCreatePdfAsync(int methodicDocumentId); 11 | 12 | Task BlankCreatePDFAsync(string userId); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/EducatorsStaff/IEducatorsStaffTypesRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities.EducatorsStaff; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace EPlast.DataAccess.Repositories 7 | { 8 | public interface IEducatorsStaffTypesRepository : IRepositoryBase 9 | { 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Realizations/User/DegreeRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | 3 | namespace EPlast.DataAccess.Repositories 4 | { 5 | public class DegreeRepository : RepositoryBase, IDegreeRepository 6 | { 7 | public DegreeRepository(EPlastDBContext dbContext) 8 | : base(dbContext) 9 | { 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Realizations/User/GenderRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | 3 | namespace EPlast.DataAccess.Repositories 4 | { 5 | public class GenderRepository : RepositoryBase, IGenderRepository 6 | { 7 | public GenderRepository(EPlastDBContext dbContext) 8 | : base(dbContext) 9 | { 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /EPlast/EPlast.WebApi/Mapping/City/CityUserProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.City; 3 | using EPlast.WebApi.Models.City; 4 | 5 | namespace EPlast.BLL.Mapping.City 6 | { 7 | public class CityUserProfile : Profile 8 | { 9 | public CityUserProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Commands/City/CreateCityWthIdCommand.cs: -------------------------------------------------------------------------------- 1 | using EPlast.BLL.DTO.City; 2 | using MediatR; 3 | 4 | namespace EPlast.BLL.Commands.City 5 | { 6 | public class CreateCityWthIdCommand : IRequest 7 | { 8 | public CityDto City { get; set; } 9 | 10 | public CreateCityWthIdCommand(CityDto city) 11 | { 12 | City = city; 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Interfaces/GoverningBodies/Announcement/IGoverningBodyBlobStorageService.cs: -------------------------------------------------------------------------------- 1 | using System.Threading.Tasks; 2 | 3 | namespace EPlast.BLL.Services.GoverningBodies.Sector 4 | { 5 | public interface IGoverningBodyBlobStorageService 6 | { 7 | public Task UploadImageAsync(string imageBase64); 8 | public Task GetImageAsync(string imageName); 9 | } 10 | } -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/EventUser/EventProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.EventUser; 3 | using EPlast.DataAccess.Entities.Event; 4 | 5 | namespace EPlast.BLL.Mapping.EventUser 6 | { 7 | public class EventProfile : Profile 8 | { 9 | public EventProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/EventUser/EventTypeProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.EventUser; 3 | using EPlast.DataAccess.Entities.Event; 4 | 5 | namespace EPlast.BLL.Mapping.EventUser 6 | { 7 | public class EventTypeProfile : Profile 8 | { 9 | public EventTypeProfile() 10 | { 11 | CreateMap(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/UserProfile/DegreeProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.UserProfiles; 3 | using EPlast.DataAccess.Entities; 4 | 5 | namespace EPlast.BLL.Mapping.UserProfile 6 | { 7 | public class DegreeProfile : Profile 8 | { 9 | public DegreeProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/UserProfile/GenderProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.UserProfiles; 3 | using EPlast.DataAccess.Entities; 4 | 5 | namespace EPlast.BLL.Mapping.UserProfile 6 | { 7 | public class GenderProfile : Profile 8 | { 9 | public GenderProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Queries/City/GetCityMembersQuery.cs: -------------------------------------------------------------------------------- 1 | using EPlast.BLL.DTO.City; 2 | using MediatR; 3 | 4 | namespace EPlast.BLL.Queries.City 5 | { 6 | public class GetCityMembersQuery : IRequest 7 | { 8 | public int CityId { get; set; } 9 | 10 | public GetCityMembersQuery(int cityId) 11 | { 12 | CityId = cityId; 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Queries/Club/GetCountDeletedUsersPerYearQuery.cs: -------------------------------------------------------------------------------- 1 | using MediatR; 2 | 3 | namespace EPlast.BLL.Queries.Club 4 | { 5 | public class GetCountDeletedUsersPerYearQuery : IRequest 6 | { 7 | public int ClubId { get; set; } 8 | 9 | public GetCountDeletedUsersPerYearQuery(int clubId) 10 | { 11 | ClubId = clubId; 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/GoverningBody/Announcement/IGoverningBodyAnnouncementImageRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities.GoverningBody.Announcement; 2 | 3 | namespace EPlast.DataAccess.Repositories.Interfaces.GoverningBody.Announcement 4 | { 5 | public interface IGoverningBodyAnnouncementImageRepository: IRepositoryBase 6 | { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /EPlast/EPlast.WebApi/Models/Club/ClubDocumentTypeViewModel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace EPlast.WebApi.Models.Club 8 | { 9 | public class ClubDocumentTypeViewModel 10 | { 11 | public int ID { get; set; } 12 | public string Name { get; set; } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Interfaces/SecurityModel/ISecurityModel.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Threading.Tasks; 3 | 4 | namespace EPlast.BLL.Interfaces 5 | { 6 | public interface ISecurityModel 7 | { 8 | Task> GetUserAccessAsync(string userId, IEnumerable userRoles= null); 9 | void SetSettingsFile(string jsonFileName); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/ConfirmedUser/ConfirmedUserProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO; 3 | 4 | namespace EPlast.BLL.Mapping.ConfirmedUser 5 | { 6 | public class ConfirmedUserProfile : Profile 7 | { 8 | public ConfirmedUserProfile() 9 | { 10 | CreateMap().ReverseMap(); 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/Decisions/DecisionTargetProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO; 3 | using EPlast.DataAccess.Entities; 4 | 5 | namespace EPlast.BLL.Mapping 6 | { 7 | public class DecisionTargetProfile : Profile 8 | { 9 | public DecisionTargetProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/UserProfile/UserProfileProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.UserProfiles; 3 | 4 | namespace EPlast.BLL.Mapping.UserProfile 5 | { 6 | public class UserProfileProfile : Profile 7 | { 8 | public UserProfileProfile() 9 | { 10 | CreateMap().ReverseMap(); 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Realizations/User/ReligionRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | 3 | namespace EPlast.DataAccess.Repositories 4 | { 5 | public class ReligionRepository : RepositoryBase, IReligionRepository 6 | { 7 | public ReligionRepository(EPlastDBContext dbContext) 8 | : base(dbContext) 9 | { 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /EPlast/EPlast.WebApi/Mapping/Approver/ApproverProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO; 3 | using EPlast.WebApi.Models.Approver; 4 | 5 | namespace EPlast.WebApi.Mapping.Approver 6 | { 7 | public class ApproverProfile : Profile 8 | { 9 | public ApproverProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.WebApi/Mapping/Club/ClubUserProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.Club; 3 | using EPlast.WebApi.Models.Club; 4 | 5 | namespace EPlast.WebApi.Mapping.Club 6 | { 7 | public class ClubUserProfile:Profile 8 | { 9 | public ClubUserProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Commands/City/CreateCityCommand.cs: -------------------------------------------------------------------------------- 1 | using EPlast.BLL.DTO.City; 2 | using MediatR; 3 | 4 | namespace EPlast.BLL.Commands.City 5 | { 6 | public class CreateCityCommand : IRequest 7 | { 8 | public CityDto City { get; set; } 9 | 10 | public CreateCityCommand(CityDto city) 11 | { 12 | City = city; 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/Region/RegionForAdministrationDTO.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace EPlast.BLL.DTO.Region 4 | { 5 | public class RegionForAdministrationDto 6 | { 7 | public int ID { get; set; } 8 | public string RegionName { get; set; } 9 | public IEnumerable YearsHasReport { get; set; } 10 | public bool IsActive { get; set; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/Region/RegionUser.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.Region; 3 | using DatabaseEntities = EPlast.DataAccess.Entities; 4 | 5 | namespace EPlast.BLL.Mapping.Region 6 | { 7 | public class RegionUser : Profile 8 | { 9 | public RegionUser() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/Terms/TermsProfile.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using AutoMapper; 4 | using EPlast.BLL.DTO.Terms; 5 | 6 | namespace EPlast.BLL.Mapping.Terms 7 | { 8 | public class TermsProfile:Profile 9 | { 10 | public TermsProfile() 11 | { 12 | CreateMap().ReverseMap(); 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/UserProfile/ReligionProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.UserProfiles; 3 | using EPlast.DataAccess.Entities; 4 | 5 | namespace EPlast.BLL.Mapping.UserProfile 6 | { 7 | public class ReligionProfile : Profile 8 | { 9 | public ReligionProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Queries/City/GetCityDocumentsQuery.cs: -------------------------------------------------------------------------------- 1 | using EPlast.BLL.DTO.City; 2 | using MediatR; 3 | 4 | namespace EPlast.BLL.Queries.City 5 | { 6 | public class GetCityDocumentsQuery : IRequest 7 | { 8 | public int CityId { get; set; } 9 | 10 | public GetCityDocumentsQuery(int cityId) 11 | { 12 | CityId = cityId; 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Queries/City/GetCityFollowersQuery.cs: -------------------------------------------------------------------------------- 1 | using EPlast.BLL.DTO.City; 2 | using MediatR; 3 | 4 | namespace EPlast.BLL.Queries.City 5 | { 6 | public class GetCityFollowersQuery : IRequest 7 | { 8 | public int CityId { get; set; } 9 | 10 | public GetCityFollowersQuery(int cityId) 11 | { 12 | CityId = cityId; 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Queries/TermsOfUse/CheckIfAdminForTermsQuery.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | using MediatR; 3 | 4 | namespace EPlast.BLL.Queries.TermsOfUse 5 | { 6 | public class CheckIfAdminForTermsQuery : IRequest 7 | { 8 | public User User { get; set; } 9 | 10 | public CheckIfAdminForTermsQuery(User user) 11 | { 12 | User = user; 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Entities/City/CityObject.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace EPlast.DataAccess.Entities 6 | { 7 | public class CityObject 8 | { 9 | public int ID { get; set; } 10 | public string Name { get; set; } 11 | public string Logo { get; set; } 12 | public int Count { get; set; } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Realizations/User/EducationRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | 3 | namespace EPlast.DataAccess.Repositories 4 | { 5 | public class EducationRepository : RepositoryBase, IEducationRepository 6 | { 7 | public EducationRepository(EPlastDBContext dbContext) 8 | : base(dbContext) 9 | { 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Realizations/User/UpuDegreeRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | 3 | namespace EPlast.DataAccess.Repositories 4 | { 5 | public class UpuDegreeRepository : RepositoryBase, IUpuDegreeRepository 6 | { 7 | public UpuDegreeRepository(EPlastDBContext dbContext) 8 | : base(dbContext) 9 | { 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /EPlast/EPlast.Resources/ApproveType.cs: -------------------------------------------------------------------------------- 1 | using System.ComponentModel; 2 | 3 | namespace EPlast.Resources 4 | { 5 | public enum ApproveType 6 | { 7 | [Description("Поручення дійсних членів")] 8 | PlastMember, 9 | [Description("Поручення куреня УСП/УПС")] 10 | Club, 11 | [Description("Поручення Голови осередку/Осередкового УСП/УПС")] 12 | City 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.WebApi/Mapping/City/CityMembersProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.City; 3 | using EPlast.WebApi.Models.City; 4 | 5 | namespace EPlast.BLL.Mapping.City 6 | { 7 | public class CityMembersProfile : Profile 8 | { 9 | public CityMembersProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Commands/Club/ArchiveCommand.cs: -------------------------------------------------------------------------------- 1 | using MediatR; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace EPlast.BLL.Commands.Club 7 | { 8 | public class ArchiveCommand : IRequest 9 | { 10 | public int ClubId { get; set; } 11 | public ArchiveCommand(int cLubId) 12 | { 13 | ClubId = cLubId; 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/AnnualReport/AnnualReportStatusDTO.cs: -------------------------------------------------------------------------------- 1 | using System.ComponentModel; 2 | 3 | namespace EPlast.BLL.DTO.AnnualReport 4 | { 5 | public enum AnnualReportStatusDto 6 | { 7 | [Description("Непідтверджений")] 8 | Unconfirmed, 9 | 10 | [Description("Підтверджений")] 11 | Confirmed, 12 | 13 | [Description("Збережений")] 14 | Saved 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/UserProfiles/UpuDegreeDTO.cs: -------------------------------------------------------------------------------- 1 | using System.ComponentModel.DataAnnotations; 2 | 3 | namespace EPlast.BLL.DTO.UserProfiles 4 | { 5 | public class UpuDegreeDto 6 | { 7 | public int ID { get; set; } 8 | 9 | [Display(Name = "Ступінь в УПЮ")] 10 | [Required(ErrorMessage = "Поле cтупінь в УПЮ є обов'язковим")] 11 | public string Name { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/Decisions/DecisionStatusTypeProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO; 3 | 4 | namespace EPlast.BLL.Mapping 5 | { 6 | public class DecisionStatusTypeProfile : Profile 7 | { 8 | public DecisionStatusTypeProfile() 9 | { 10 | CreateMap().ReverseMap(); 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/GoverningBody/Sector/SectorUserProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.GoverningBody.Sector; 3 | 4 | namespace EPlast.BLL.Mapping.GoverningBody.Sector 5 | { 6 | public class SectorUserProfile : Profile 7 | { 8 | public SectorUserProfile() 9 | { 10 | CreateMap().ReverseMap(); 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/UserProfile/EducationProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.UserProfiles; 3 | using EPlast.DataAccess.Entities; 4 | 5 | namespace EPlast.BLL.Mapping.UserProfile 6 | { 7 | public class EducationProfile : Profile 8 | { 9 | public EducationProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/UserProfile/UpuDegreeProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.UserProfiles; 3 | using EPlast.DataAccess.Entities; 4 | 5 | namespace EPlast.BLL.Mapping.UserProfile 6 | { 7 | public class UpuDegreeProfile : Profile 8 | { 9 | public UpuDegreeProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Queries/City/GetCityAdminsQuery.cs: -------------------------------------------------------------------------------- 1 | using EPlast.BLL.DTO.City; 2 | using MediatR; 3 | 4 | namespace EPlast.BLL.Queries.City 5 | { 6 | public class GetCityAdminsQuery : IRequest 7 | { 8 | public int CityId { get; set; } 9 | 10 | public GetCityAdminsQuery(int cityId) 11 | { 12 | CityId = cityId; 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Queries/City/GetCityProfileBasicQuery.cs: -------------------------------------------------------------------------------- 1 | using EPlast.BLL.DTO.City; 2 | using MediatR; 3 | 4 | namespace EPlast.BLL.Queries.City 5 | { 6 | public class GetCityProfileBasicQuery : IRequest 7 | { 8 | public int CityId { get; set; } 9 | 10 | public GetCityProfileBasicQuery(int cityId) 11 | { 12 | CityId = cityId; 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Realizations/Decision/DecesionTargetRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | 3 | namespace EPlast.DataAccess.Repositories 4 | { 5 | public class DecesionTargetRepository : RepositoryBase, IDecesionTargetRepository 6 | { 7 | public DecesionTargetRepository(EPlastDBContext dbContext) : base(dbContext) 8 | { 9 | } 10 | } 11 | } -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Realizations/User/NationalityRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | 3 | namespace EPlast.DataAccess.Repositories 4 | { 5 | public class NationalityRepository : RepositoryBase, INationalityRepository 6 | { 7 | public NationalityRepository(EPlastDBContext dbContext) 8 | : base(dbContext) 9 | { 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Realizations/User/PlastDegreeRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | 3 | namespace EPlast.DataAccess.Repositories 4 | { 5 | public class PlastDegreeRepository: RepositoryBase, IPlastDegreeRepository 6 | { 7 | public PlastDegreeRepository(EPlastDBContext dbContext) 8 | : base(dbContext) 9 | { 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /EPlast/EPlast.WebApi/Mapping/Club/ClubProfileProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.Club; 3 | using EPlast.WebApi.Models.Club; 4 | 5 | namespace EPlast.WebApi.Mapping.Club 6 | { 7 | public class ClubProfileProfile : Profile 8 | { 9 | public ClubProfileProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /manifests/test/cert-issuer-prod.yml: -------------------------------------------------------------------------------- 1 | apiVersion: cert-manager.io/v1 2 | kind: ClusterIssuer 3 | metadata: 4 | name: letsencrypt-production 5 | spec: 6 | acme: 7 | server: https://acme-v02.api.letsencrypt.org/directory 8 | email: izavuschak@gmail.com 9 | privateKeySecretRef: 10 | name: letsencrypt-production 11 | solvers: 12 | - http01: 13 | ingress: 14 | class: nginx 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/MethodicDocument/MethodicDocumentTypeDTO.cs: -------------------------------------------------------------------------------- 1 | using System.ComponentModel; 2 | 3 | namespace EPlast.BLL.DTO 4 | { 5 | public enum MethodicDocumentTypeDto 6 | { 7 | [Description("Нормативний акт")] 8 | legislation, 9 | 10 | [Description("Методичний документ")] 11 | Methodics, 12 | 13 | [Description("Різне")] 14 | Other 15 | 16 | 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/Terms/TermsDTO.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace EPlast.BLL.DTO.Terms 5 | { 6 | public class TermsDto 7 | { 8 | public int TermsId { get; set; } 9 | public string TermsTitle { get; set; } 10 | [AllowHtml] 11 | public string TermsText { get; set; } 12 | public DateTime DatePublication { get; set; } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Interfaces/Club/IClubAccessGetter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Threading.Tasks; 4 | using DatabaseEntities = EPlast.DataAccess.Entities; 5 | 6 | namespace EPlast.BLL.Services.Club.ClubAccess.ClubAccessGetters 7 | { 8 | public interface IClubAccessGetter 9 | { 10 | Task> GetClubs(string userId); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Interfaces/Home/Events/IEventAdministrationManager.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities.Event; 2 | using System.Collections.Generic; 3 | using System.Threading.Tasks; 4 | 5 | namespace EPlast.BLL.Interfaces.Events 6 | { 7 | public interface IEventAdmininistrationManager 8 | { 9 | Task> GetEventAdmininistrationByUserIdAsync(string userId); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Interfaces/Region/IRegionAccessGetter.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Threading.Tasks; 3 | using DatabaseEntities = EPlast.DataAccess.Entities; 4 | 5 | namespace EPlast.BLL.Services.Region.RegionAccess.RegionAccessGetters 6 | { 7 | public interface IRegionAccessGetter 8 | { 9 | Task> GetRegionAsync(string userId); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/AnnualReport/CityProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.AnnualReport; 3 | using DatabaseEntities = EPlast.DataAccess.Entities; 4 | 5 | namespace EPlast.BLL.Mapping.AnnualReport 6 | { 7 | public class CityProfile : Profile 8 | { 9 | public CityProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/AnnualReport/UserProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.AnnualReport; 3 | using DatabaseEntities = EPlast.DataAccess.Entities; 4 | 5 | namespace EPlast.BLL.Mapping.AnnualReport 6 | { 7 | public class UserProfile : Profile 8 | { 9 | public UserProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/City/CityUserProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.City; 3 | using DatabaseEntities = EPlast.DataAccess.Entities; 4 | 5 | namespace EPlast.BLL.Mapping.City 6 | { 7 | public class CityUserProfile : Profile 8 | { 9 | public CityUserProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/Club/ClubUserProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.Club; 3 | using DatabaseEntities = EPlast.DataAccess.Entities; 4 | 5 | namespace EPlast.BLL.Mapping.Club 6 | { 7 | public class ClubUserProfile : Profile 8 | { 9 | public ClubUserProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Queries/City/GetCityByIdWthFullInfoQuery.cs: -------------------------------------------------------------------------------- 1 | using EPlast.BLL.DTO.City; 2 | using MediatR; 3 | 4 | namespace EPlast.BLL.Queries.City 5 | { 6 | public class GetCityByIdWthFullInfoQuery : IRequest 7 | { 8 | public int CityId { get; set; } 9 | 10 | public GetCityByIdWthFullInfoQuery(int cityId) 11 | { 12 | CityId = cityId; 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Entities/AnnualReport/AnnualReportStatus.cs: -------------------------------------------------------------------------------- 1 | using System.ComponentModel; 2 | 3 | namespace EPlast.DataAccess.Entities 4 | { 5 | public enum AnnualReportStatus 6 | { 7 | [Description("Непідтверджений")] 8 | Unconfirmed, 9 | 10 | [Description("Підтверджений")] 11 | Confirmed, 12 | 13 | [Description("Збережений")] 14 | Saved 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Entities/UserEntities/UserFormerMembershipTable.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace EPlast.DataAccess.Entities.UserEntities 6 | { 7 | public class UserFormerMembershipTable 8 | { 9 | public int ID { get; set; } 10 | public DateTime? Entry { get; set; } 11 | public DateTime? End { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Realizations/User/ParticipantRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | 3 | namespace EPlast.DataAccess.Repositories 4 | { 5 | public class ParticipantRepository: RepositoryBase, IParticipantRepository 6 | { 7 | public ParticipantRepository(EPlastDBContext dbContext) 8 | : base(dbContext) 9 | { 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Realizations/User/PrecautionRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities.UserEntities; 2 | 3 | namespace EPlast.DataAccess.Repositories 4 | { 5 | class PrecautionRepository: RepositoryBase, IPrecautionRepository 6 | { 7 | public PrecautionRepository(EPlastDBContext dBContext) 8 | : base(dBContext) 9 | { 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /EPlast/EPlast.WebApi/CustomAttributes/AuthorizeRolesAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Microsoft.AspNetCore.Authorization; 3 | 4 | namespace EPlast.WebApi.CustomAttributes 5 | { 6 | public class AuthorizeRolesAttribute : AuthorizeAttribute 7 | { 8 | public AuthorizeRolesAttribute(params string[] roles) : base() 9 | { 10 | Roles = String.Join(',', roles); 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/Blank/ExtractFromUPUDocumentsDTO.cs: -------------------------------------------------------------------------------- 1 | using System.ComponentModel.DataAnnotations; 2 | 3 | namespace EPlast.BLL.DTO.Blank 4 | { 5 | public class ExtractFromUpuDocumentsDto 6 | { 7 | public int ID { get; set; } 8 | public string BlobName { get; set; } 9 | public string FileName { get; set; } 10 | [Required] 11 | public string UserId { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/City/CityAdministrationViewModelDTO.cs: -------------------------------------------------------------------------------- 1 | 2 | using System.Collections.Generic; 3 | 4 | namespace EPlast.BLL.DTO.City 5 | { 6 | public class CityAdministrationViewModelDto 7 | { 8 | public IEnumerable Administration { get; set; } 9 | public CityAdministrationDto Head { get; set; } 10 | public CityAdministrationDto HeadDeputy { get; set; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/Club/ClubReportProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.Club; 3 | using DatabaseEntities = EPlast.DataAccess.Entities; 4 | 5 | namespace EPlast.BLL.Mapping.Club 6 | { 7 | public class ClubReportProfile:Profile 8 | { 9 | public ClubReportProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/EventUser/EventGeneralInfoProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.EventUser; 3 | using EPlast.DataAccess.Entities.Event; 4 | 5 | namespace EPlast.BLL.Mapping.EventUser 6 | { 7 | public class EventGeneralInfoProfile : Profile 8 | { 9 | public EventGeneralInfoProfile() 10 | { 11 | CreateMap(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/Events/EventCategoryProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.Events; 3 | using EPlast.DataAccess.Entities.Event; 4 | 5 | namespace EPlast.BLL.Mapping.Events 6 | { 7 | public class EventCategoryProfile : Profile 8 | { 9 | public EventCategoryProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/GoverningBody/GoverningBodyUserProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.GoverningBody; 3 | 4 | namespace EPlast.BLL.Mapping.GoverningBody 5 | { 6 | public class GoverningBodyUserProfile : Profile 7 | { 8 | public GoverningBodyUserProfile() 9 | { 10 | CreateMap().ReverseMap(); 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/Statistics/CityProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using DatabaseEntities = EPlast.DataAccess.Entities; 3 | using DTOs = EPlast.BLL.DTO.Statistics; 4 | 5 | namespace EPlast.BLL.Mapping.Statistics 6 | { 7 | public class CityProfile : Profile 8 | { 9 | public CityProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/UserProfile/NationalityProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.UserProfiles; 3 | using EPlast.DataAccess.Entities; 4 | 5 | namespace EPlast.BLL.Mapping.UserProfile 6 | { 7 | public class NationalityProfile : Profile 8 | { 9 | public NationalityProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/UserProfile/UserRenewalProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.UserProfiles; 3 | using EPlast.DataAccess.Entities; 4 | 5 | namespace EPlast.BLL.Mapping.UserProfile 6 | { 7 | public class UserRenewalProfile : Profile 8 | { 9 | public UserRenewalProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Entities/Event/EventSection.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.ComponentModel.DataAnnotations; 3 | 4 | namespace EPlast.DataAccess.Entities.Event 5 | { 6 | public class EventSection 7 | { 8 | public int ID { get; set; } 9 | public string EventSectionName { get; set; } 10 | public ICollection EventCategories { get; set; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Entities/Event/Gallary.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.ComponentModel.DataAnnotations; 3 | 4 | namespace EPlast.DataAccess.Entities.Event 5 | { 6 | public class Gallary 7 | { 8 | public int ID { get; set; } 9 | [Required] 10 | public string GalaryFileName { get; set; } 11 | public ICollection Events { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Realizations/Decision/DocumentTemplateRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | 3 | namespace EPlast.DataAccess.Repositories 4 | { 5 | public class DocumentTemplateRepository : RepositoryBase, IDocumentTemplateRepository 6 | { 7 | public DocumentTemplateRepository(EPlastDBContext dbContext) : base(dbContext) 8 | { 9 | } 10 | } 11 | } -------------------------------------------------------------------------------- /EPlast/EPlast.WebApi/Models/ErrorHandling/ErrorDetails.cs: -------------------------------------------------------------------------------- 1 | using Newtonsoft.Json; 2 | 3 | namespace EPlast.WebApi.Models.ErrorHandling 4 | { 5 | public class ErrorDetails 6 | { 7 | public int StatusCode { get; set; } 8 | public string Message { get; set; } 9 | 10 | public override string ToString() 11 | { 12 | return JsonConvert.SerializeObject(this); 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /EPlast/EPlast.WebApi/Models/UserModels/UserProfileFields/UpuDegreeViewModel.cs: -------------------------------------------------------------------------------- 1 | using System.ComponentModel.DataAnnotations; 2 | 3 | namespace EPlast.WebApi.Models.UserModels.UserProfileFields 4 | { 5 | public class UpuDegreeViewModel 6 | { 7 | public int ID { get; set; } 8 | 9 | [Required(ErrorMessage = "Поле ступінь в УПЮ є обов'язковим")] 10 | public string Name { get; set; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/ActiveMembership/UserPlastDegreePostDTO.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using EPlast.DataAccess.Entities; 3 | 4 | namespace EPlast.BLL.DTO.ActiveMembership 5 | { 6 | public class UserPlastDegreePostDto 7 | { 8 | public int Id { get; set; } 9 | public int PlastDegreeId { get; set; } 10 | public DateTime DateStart { get; set; } 11 | public string UserId { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/AnnualReport/RegionProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.AnnualReport; 3 | using DatabaseEntities = EPlast.DataAccess.Entities; 4 | 5 | namespace EPlast.BLL.Mapping.AnnualReport 6 | { 7 | public class RegionProfile : Profile 8 | { 9 | public RegionProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/Club/ClubReportCityProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.Club; 3 | using DatabaseEntities = EPlast.DataAccess.Entities; 4 | 5 | namespace EPlast.BLL.Mapping.Club 6 | { 7 | class ClubReportCityProfile : Profile 8 | { 9 | public ClubReportCityProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Entities/UserEntities/Approver.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace EPlast.DataAccess.Entities 6 | { 7 | public class Approver 8 | { 9 | public int ID { get; set; } 10 | public string UserID { get; set; } 11 | public User User { get; set; } 12 | public ConfirmedUser ConfirmedUser { get; set; } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Realizations/User/ConfirmedUserRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | 3 | namespace EPlast.DataAccess.Repositories 4 | { 5 | public class ConfirmedUserRepository : RepositoryBase, IConfirmedUserRepository 6 | { 7 | public ConfirmedUserRepository(EPlastDBContext dbContext) 8 | : base(dbContext) 9 | { 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /EPlast/EPlast.WebApi/Mapping/Approver/ConfirmedUserProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO; 3 | using EPlast.WebApi.Models.Approver; 4 | 5 | namespace EPlast.WebApi.Mapping.Approver 6 | { 7 | public class ConfirmedUserProfile : Profile 8 | { 9 | public ConfirmedUserProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.WebApi/Models/Admin/AdminTypeViewModel.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using EPlast.BLL.DTO; 3 | 4 | namespace EPlast.WebApi.Models.Admin 5 | { 6 | public class AdminTypeViewModel 7 | { 8 | public int ID { get; set; } 9 | public string AdminTypeName { get; set; } 10 | public IEnumerable Users { get; set; } 11 | public int Total { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/UserAuthentication/ForgotPasswordDto.cs: -------------------------------------------------------------------------------- 1 | using System.ComponentModel.DataAnnotations; 2 | 3 | namespace EPlast.BLL.DTO.Account 4 | { 5 | public class ForgotPasswordDto 6 | { 7 | [Required(ErrorMessage = "Поле електронна пошта є обов'язковим")] 8 | [EmailAddress(ErrorMessage = "Введене поле не є правильним для електронної пошти")] 9 | public string Email { get; set; } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/ActiveMembership/PlastDegreeProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.ActiveMembership; 3 | using EPlast.DataAccess.Entities; 4 | 5 | namespace EPlast.BLL.Mapping.ActiveMembership 6 | { 7 | public class PlastDegreeProfile : Profile 8 | { 9 | public PlastDegreeProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/City/CityMembersProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.City; 3 | using DatabaseEntities = EPlast.DataAccess.Entities; 4 | 5 | namespace EPlast.BLL.Mapping.City 6 | { 7 | public class CityMembersProfile : Profile 8 | { 9 | public CityMembersProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/Club/ClubMembersProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.Club; 3 | using DatabaseEntities = EPlast.DataAccess.Entities; 4 | 5 | namespace EPlast.BLL.Mapping.Club 6 | { 7 | public class ClubMembersProfile : Profile 8 | { 9 | public ClubMembersProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/EventUser/EventEditAdminProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.EventUser; 3 | using EPlast.DataAccess.Entities.Event; 4 | 5 | namespace EPlast.BLL.Mapping.EventUser 6 | { 7 | public class EventEditAdminProfile : Profile 8 | { 9 | public EventEditAdminProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/Region/RegionDocumentProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.Region; 3 | 4 | 5 | namespace EPlast.BLL.Mapping.Region 6 | { 7 | public class RegionDocumentProfile:Profile 8 | { 9 | public RegionDocumentProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | 14 | 15 | 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/Statistics/RegionProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using DatabaseEntities = EPlast.DataAccess.Entities; 3 | using DTOs = EPlast.BLL.DTO.Statistics; 4 | 5 | namespace EPlast.BLL.Mapping.Statistics 6 | { 7 | public class RegionProfile : Profile 8 | { 9 | public RegionProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Realizations/Events/EventRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | using EPlast.DataAccess.Entities.Event; 3 | 4 | namespace EPlast.DataAccess.Repositories 5 | { 6 | public class EventRepository : RepositoryBase, IEventRepository 7 | { 8 | public EventRepository(EPlastDBContext dbContext) 9 | : base(dbContext) 10 | { 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/Admin/FilterTableParametersByRole.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace EPlast.BLL.DTO.Admin 6 | { 7 | public class FilterTableParametersByRole 8 | { 9 | public string Regions { get; set; } 10 | public string Cities { get; set; } 11 | public string Clubs { get; set; } 12 | public string AndClubs { get; set; } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/Events/EventFeedbackDto.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.BLL.DTO.Events 2 | { 3 | public class EventFeedbackDto 4 | { 5 | public int Id { get; set; } 6 | public string AuthorName { get; set; } 7 | public string AuthorAvatarUrl { get; set; } 8 | public string AuthorUserId { get; set; } 9 | public double Rating { get; set; } 10 | public string Text { get; set; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Interfaces/Blank/ICourseService.cs: -------------------------------------------------------------------------------- 1 | using EPlast.BLL.DTO.Course; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace EPlast.BLL.Interfaces.Blank 8 | { 9 | public interface ICourseService 10 | { 11 | Task> GetAllAsync(); 12 | Task AddCourseAsync(CourseDto courseDto); 13 | 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/Club/ClubReportUserProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.Club; 3 | using DatabaseEntities = EPlast.DataAccess.Entities; 4 | 5 | namespace EPlast.BLL.Mapping.Club 6 | { 7 | class ClubReportUserProfile : Profile 8 | { 9 | public ClubReportUserProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } 15 | 16 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Realizations/Notification/NotificationTypeRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | 3 | namespace EPlast.DataAccess.Repositories 4 | { 5 | public class NotificationTypeRepository : RepositoryBase, INotificationTypeRepository 6 | { 7 | public NotificationTypeRepository(EPlastDBContext dbContext) : base(dbContext) 8 | { 9 | 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /EPlast/EPlast.Resources/AllowedDegreesForCityHeadAndDeputy.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace EPlast.Resources 4 | { 5 | public static class AllowedDegreesForCityHeadAndDeputy 6 | { 7 | public static List Degrees => new List(){ "Старший пластун прихильник / Старша пластунка прихильниця", 8 | "Пластун сеніор прихильник / Пластунка сеніорка прихильниця"}; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/GoverningBody/Announcement/GoverningBodyAnnouncementImageDTO.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace EPlast.BLL.DTO.GoverningBody.Announcement 6 | { 7 | public class GoverningBodyAnnouncementImageDto 8 | { 9 | public int Id { get; set; } 10 | public string ImagePath { get; set; } 11 | public string ImageBase64 { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/GoverningBody/Announcement/UserDTO.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace EPlast.BLL.DTO.GoverningBody.Announcement 6 | { 7 | public class UserDto 8 | { 9 | public string Id { get; set; } 10 | public string FirstName { get; set; } 11 | public string LastName { get; set; } 12 | public string ImagePath { get; set; } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/AnnualReport/MembersStatisticProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.AnnualReport; 3 | using EPlast.DataAccess.Entities; 4 | 5 | namespace EPlast.BLL.Mapping.AnnualReport 6 | { 7 | public class MembersStatisticProfile : Profile 8 | { 9 | public MembersStatisticProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Queries/City/GetCityUsersQuery.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using EPlast.BLL.DTO.City; 3 | using MediatR; 4 | 5 | namespace EPlast.BLL.Queries.City 6 | { 7 | public class GetCityUsersQuery : IRequest> 8 | { 9 | public int CityId{ get; set; } 10 | 11 | public GetCityUsersQuery(int cityId) 12 | { 13 | CityId = cityId; 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Queries/Distinction/GetDistinctionQuery.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using MediatR; 5 | 6 | namespace EPlast.BLL.Queries.Distinction 7 | { 8 | public class GetDistinctionQuery : IRequest 9 | { 10 | public int Id { get; set; } 11 | public GetDistinctionQuery(int id) 12 | { 13 | Id = id; 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Entities/Decision/DecesionStatus.cs: -------------------------------------------------------------------------------- 1 | using System.ComponentModel; 2 | using System.ComponentModel.DataAnnotations; 3 | 4 | namespace EPlast.DataAccess.Entities 5 | { 6 | public enum DecesionStatusType 7 | { 8 | [Description("У розгляді")] 9 | InReview, 10 | 11 | [Description("Потверджено")] 12 | Confirmed, 13 | 14 | [Description("Скасовано")] 15 | Canceled 16 | } 17 | } -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Entities/Event/EventStatus.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.ComponentModel.DataAnnotations; 3 | 4 | namespace EPlast.DataAccess.Entities.Event 5 | { 6 | public class EventStatus 7 | { 8 | public int ID { get; set; } 9 | [Required] 10 | public string EventStatusName { get; set; } 11 | public ICollection Events { get; set; } 12 | 13 | } 14 | } -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Entities/UserEntities/PlastDegree.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.ComponentModel.DataAnnotations; 3 | 4 | namespace EPlast.DataAccess.Entities 5 | { 6 | public class PlastDegree 7 | { 8 | public int Id { get; set; } 9 | [Required] 10 | public string Name { get; set; } 11 | public ICollection UserPlastDegrees { get; set; } 12 | 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Realizations/Events/GallaryRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | using EPlast.DataAccess.Entities.Event; 3 | 4 | namespace EPlast.DataAccess.Repositories 5 | { 6 | public class GallaryRepository : RepositoryBase, IGallaryRepository 7 | { 8 | public GallaryRepository(EPlastDBContext dbContext) 9 | : base(dbContext) 10 | { 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Realizations/User/DistinctionRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities.UserEntities; 2 | 3 | 4 | namespace EPlast.DataAccess.Repositories 5 | { 6 | public class DistinctionRepository : RepositoryBase, IDistinctionRepository 7 | { 8 | public DistinctionRepository(EPlastDBContext dBContext) 9 | : base(dBContext) 10 | { 11 | 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Realizations/User/ParticipantStatusRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | namespace EPlast.DataAccess.Repositories 3 | { 4 | public class ParticipantStatusRepository : RepositoryBase, IParticipantStatusRepository 5 | { 6 | public ParticipantStatusRepository(EPlastDBContext dbContext) 7 | : base(dbContext) 8 | { 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /EPlast/EPlast.WebApi/Mapping/City/CityAdministrationProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.City; 3 | using EPlast.WebApi.Models.City; 4 | 5 | namespace EPlast.BLL.Mapping.City 6 | { 7 | public class CityAdministrationProfile : Profile 8 | { 9 | public CityAdministrationProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Commands/Decision/UpdateCommand.cs: -------------------------------------------------------------------------------- 1 | using EPlast.BLL.DTO; 2 | using EPlast.DataAccess.Entities.Decision; 3 | using MediatR; 4 | 5 | namespace EPlast.BLL.Commands.Decision 6 | { 7 | public class UpdateCommand: IRequest 8 | { 9 | public DecisionDto DecisionDto { get; set; } 10 | public UpdateCommand(DecisionDto decisionDTO) 11 | { 12 | DecisionDto = decisionDTO; 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/Course/CourseDto.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities.Blank; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace EPlast.BLL.DTO.Course 7 | { 8 | public class CourseDto 9 | { 10 | public int ID { get; set; } 11 | public string Name { get; set; } 12 | public string Link { get; set; } 13 | public bool IsFinishedByUser { get; set; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/PrecautionsDTO/UserPrecautionsTableInfo.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using EPlast.DataAccess.Entities.UserEntities; 5 | 6 | namespace EPlast.BLL.DTO.PrecautionsDTO 7 | { 8 | public class UserPrecautionsTableInfo 9 | { 10 | public IEnumerable UserPrecautions { get; set; } 11 | public int TotalItems { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Interfaces/FormerMember/IFormerMemberService.cs: -------------------------------------------------------------------------------- 1 | using System.Threading.Tasks; 2 | 3 | namespace EPlast.BLL.Interfaces.FormerMember 4 | { 5 | public interface IFormerMemberService 6 | { 7 | /// 8 | /// Changes user status to Former member 9 | /// 10 | /// User id 11 | public Task MakeUserFormerMeberAsync(string userId); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/Notification/NotificationTypeProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.Notification; 3 | using EPlast.DataAccess.Entities; 4 | 5 | namespace EPlast.BLL.Mapping.Notification 6 | { 7 | public class NotificationTypeProfile : Profile 8 | { 9 | public NotificationTypeProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Entities/AboutBase/Pictures.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.ComponentModel.DataAnnotations; 3 | 4 | namespace EPlast.DataAccess.Entities.AboutBase 5 | { 6 | public class Pictures 7 | { 8 | public int ID { get; set; } 9 | [Required] 10 | public string PictureFileName { get; set; } 11 | public ICollection Subsections { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Entities/UserEntities/UpuDegree.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.ComponentModel.DataAnnotations; 3 | 4 | namespace EPlast.DataAccess.Entities 5 | { 6 | public class UpuDegree 7 | { 8 | public int ID { get; set; } 9 | [Display(Name = "Ступінь в УПЮ")] 10 | public string Name { get; set; } 11 | public ICollection UserProfiles { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Realizations/AboutBase/PicturesRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | using EPlast.DataAccess.Entities.AboutBase; 3 | 4 | namespace EPlast.DataAccess.Repositories 5 | { 6 | public class PicturesRepository : RepositoryBase, IPicturesRepository 7 | { 8 | public PicturesRepository(EPlastDBContext dbContext) 9 | : base(dbContext) 10 | { 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Realizations/Events/EventTypeRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | using EPlast.DataAccess.Entities.Event; 3 | 4 | namespace EPlast.DataAccess.Repositories 5 | { 6 | public class EventTypeRepository : RepositoryBase, IEventTypeRepository 7 | { 8 | public EventTypeRepository(EPlastDBContext dbContext) 9 | : base(dbContext) 10 | { 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /EPlast/EPlast.WebApi/Mapping/Club/ClubMembersProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.Club; 3 | using EPlast.DataAccess.Entities; 4 | using EPlast.WebApi.Models.Club; 5 | 6 | namespace EPlast.WebApi.Mapping.Club 7 | { 8 | public class ClubMembersProfile : Profile 9 | { 10 | public ClubMembersProfile() 11 | { 12 | CreateMap().ReverseMap(); 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /EPlast/EPlast.WebApi/Mapping/User/UserProfileFields/WorkProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.UserProfiles; 3 | using EPlast.WebApi.Models.UserModels.UserProfileFields; 4 | 5 | namespace EPlast.WebApi.Mapping.User.UserProfileFields 6 | { 7 | public class WorkProfile : Profile 8 | { 9 | public WorkProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.WebApi/Models/Region/RegionProfileViewModel.cs: -------------------------------------------------------------------------------- 1 | using EPlast.WebApi.Models.City; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Threading.Tasks; 6 | 7 | namespace EPlast.WebApi.Models.Region 8 | { 9 | public class RegionProfileViewModel 10 | { 11 | public RegionViewModel Region { get; set; } 12 | public IEnumerable Cities { get; set; } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Commands/Decision/SaveDecisionAsyncCommand.cs: -------------------------------------------------------------------------------- 1 | using EPlast.BLL.DTO; 2 | using MediatR; 3 | 4 | namespace EPlast.BLL.Commands.Decision 5 | { 6 | public class SaveDecisionAsyncCommand : IRequest 7 | { 8 | public DecisionWrapperDto Decision { get; set; } 9 | public SaveDecisionAsyncCommand(DecisionWrapperDto decisionWrapper) 10 | { 11 | Decision = decisionWrapper; 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/Statistics/CitiesStatisticsParameters.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace EPlast.BLL.DTO.Statistics 6 | { 7 | public class CitiesStatisticsParameters 8 | { 9 | public IEnumerable CityIds { get; set; } 10 | public IEnumerable Years { get; set; } 11 | public IEnumerable Indicators { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Interfaces/Blank/IUserCourseService.cs: -------------------------------------------------------------------------------- 1 | using EPlast.BLL.DTO.Blank; 2 | using EPlast.BLL.DTO.Course; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace EPlast.BLL.Interfaces.Blank 9 | { 10 | public interface IUserCourseService 11 | { 12 | Task> GetCourseByUserIdAsync(string userid); 13 | 14 | 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/ActiveMembership/UserPlastDegreeProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.ActiveMembership; 3 | using EPlast.DataAccess.Entities; 4 | 5 | namespace EPlast.BLL.Mapping.ActiveMembership 6 | { 7 | public class UserPlastDegreeProfile : Profile 8 | { 9 | public UserPlastDegreeProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/City/CityLegalStatusProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.City; 3 | using DatabaseEntities = EPlast.DataAccess.Entities; 4 | 5 | namespace EPlast.BLL.Mapping.City 6 | { 7 | public class CityLegalStatusProfile : Profile 8 | { 9 | public CityLegalStatusProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/Club/ClubLegalStatusProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.Club; 3 | using DatabaseEntities = EPlast.DataAccess.Entities; 4 | 5 | namespace EPlast.BLL.Mapping.Club 6 | { 7 | public class ClubLegalStatusProfile : Profile 8 | { 9 | public ClubLegalStatusProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/Club/ClubReportCitiesProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.Club; 3 | using DatabaseEntities = EPlast.DataAccess.Entities; 4 | 5 | namespace EPlast.BLL.Mapping.Club 6 | { 7 | class ClubReportCitiesProfile : Profile 8 | { 9 | public ClubReportCitiesProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/Notification/UserNotificationProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.Notification; 3 | using EPlast.DataAccess.Entities; 4 | 5 | namespace EPlast.BLL.Mapping.Notification 6 | { 7 | public class UserNotificationProfile : Profile 8 | { 9 | public UserNotificationProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Entities/Club/ClubReportMember.cs: -------------------------------------------------------------------------------- 1 | 2 | namespace EPlast.DataAccess.Entities 3 | { 4 | public class ClubReportMember 5 | { 6 | public int ID { get; set; } 7 | public int ClubAnnualReportId { get; set; } 8 | public ClubAnnualReport ClubAnnualReport { get; set; } 9 | public int ClubMemberHistoryId { get; set; } 10 | public ClubMemberHistory ClubMemberHistory { get; set; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Entities/Event/EventFeedback.cs: -------------------------------------------------------------------------------- 1 | using System.ComponentModel.DataAnnotations; 2 | 3 | namespace EPlast.DataAccess.Entities.Event 4 | { 5 | public class EventFeedback 6 | { 7 | public int Id { get; set; } 8 | public double Rating { get; set; } 9 | public string Text { get; set; } 10 | public int ParticipantId { get; set; } 11 | public Participant Participant { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Realizations/Events/EventFeedbackRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities.Event; 2 | using EPlast.DataAccess.Repositories.Interfaces.Events; 3 | 4 | namespace EPlast.DataAccess.Repositories 5 | { 6 | public class EventFeedbackRepository : RepositoryBase, IEventFeedbackRepository 7 | { 8 | public EventFeedbackRepository(EPlastDBContext _dbContext) : base(_dbContext) { } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Realizations/Notification/UserNotificationRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | 3 | namespace EPlast.DataAccess.Repositories 4 | { 5 | public class UserNotificationRepository : RepositoryBase, IUserNotificationRepository 6 | { 7 | public UserNotificationRepository(EPlastDBContext dbContext) 8 | : base(dbContext) 9 | { 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Commands/Club/UnArchiveCommand.cs: -------------------------------------------------------------------------------- 1 | using MediatR; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace EPlast.BLL.Commands.Club 8 | { 9 | public class UnArchiveCommand : IRequest 10 | { 11 | public int ClubId { get; set; } 12 | public UnArchiveCommand(int cLubId) 13 | { 14 | ClubId = cLubId; 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/Club/ClubLegalStatusDTO.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using EPlast.DataAccess.Entities; 3 | 4 | namespace EPlast.BLL.DTO.Club 5 | { 6 | public class ClubLegalStatusDto 7 | { 8 | public int Id { get; set; } 9 | public DateTime DateStart { get; set; } 10 | public DateTime? DateFinish { get; set; } 11 | public ClubLegalStatusType LegalStatusType { get; set; } 12 | public int CityId { get; set; } 13 | } 14 | } -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/Region/RegionDocumentDTO.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace EPlast.BLL.DTO.Region 4 | { 5 | public class RegionDocumentDto : IDocumentDto 6 | { 7 | public int ID { get; set; } 8 | public DateTime? SubmitDate { get; set; } 9 | public string BlobName { get; set; } 10 | public string FileName { get; set; } 11 | public int RegionId { get; set; } 12 | 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/Statistics/RegionsStatisticsParameters.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace EPlast.BLL.DTO.Statistics 6 | { 7 | public class RegionsStatisticsParameters 8 | { 9 | public IEnumerable RegionIds { get; set; } 10 | public IEnumerable Years { get; set; } 11 | public IEnumerable Indicators { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Interfaces/Logging/ILoggerService.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.Extensions.Logging; 2 | 3 | namespace EPlast.BLL.Interfaces.Logging 4 | { 5 | public interface ILoggerService 6 | { 7 | ILogger Logger { get; } 8 | void LogInformation(string msg); 9 | void LogWarning(string msg); 10 | void LogTrace(string msg); 11 | void LogDebug(string msg); 12 | void LogError(string msg); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Interfaces/Statistics/ICityStatisticsService.cs: -------------------------------------------------------------------------------- 1 | using EPlast.BLL.DTO.Statistics; 2 | using System.Collections.Generic; 3 | using System.Threading.Tasks; 4 | 5 | namespace EPlast.BLL.Interfaces.Statistics 6 | { 7 | public interface ICityStatisticsService 8 | { 9 | Task> GetCitiesStatisticsAsync(IEnumerable cityIds, IEnumerable years, IEnumerable indicators); 10 | } 11 | } -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/AnnualReport/AnnualReportProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.AnnualReport; 3 | using DatabaseEntities = EPlast.DataAccess.Entities; 4 | 5 | namespace EPlast.BLL.Mapping.AnnualReport 6 | { 7 | public class AnnualReportProfile : Profile 8 | { 9 | public AnnualReportProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/Club/ClubMemberHistoryProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.Club; 3 | using DatabaseEntities = EPlast.DataAccess.Entities; 4 | 5 | namespace EPlast.BLL.Mapping.Club 6 | { 7 | class ClubMemberHistoryProfile : Profile 8 | { 9 | public ClubMemberHistoryProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Queries/Decision/DownloadDecisionFileFromBlobAsyncQuery.cs: -------------------------------------------------------------------------------- 1 | using EPlast.BLL.DTO; 2 | using MediatR; 3 | 4 | namespace EPlast.BLL.Queries.Decision 5 | { 6 | public class DownloadDecisionFileFromBlobAsyncQuery: IRequest 7 | { 8 | public string FileName { get; set; } 9 | public DownloadDecisionFileFromBlobAsyncQuery(string fileName) 10 | { 11 | FileName = fileName; 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Realizations/Events/EventStatusRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | using EPlast.DataAccess.Entities.Event; 3 | 4 | namespace EPlast.DataAccess.Repositories 5 | { 6 | public class EventStatusRepository : RepositoryBase, IEventStatusRepository 7 | { 8 | public EventStatusRepository(EPlastDBContext dbContext) 9 | : base(dbContext) 10 | { 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /EPlast/EPlast.WebApi/Mapping/User/UserProfileFields/DegreeProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.UserProfiles; 3 | using EPlast.WebApi.Models.UserModels.UserProfileFields; 4 | 5 | namespace EPlast.WebApi.Mapping.User.UserProfileFields 6 | { 7 | public class DegreeProfile : Profile 8 | { 9 | public DegreeProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.WebApi/Mapping/User/UserProfileFields/GenderProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.UserProfiles; 3 | using EPlast.WebApi.Models.UserModels.UserProfileFields; 4 | 5 | namespace EPlast.WebApi.Mapping.User.UserProfileFields 6 | { 7 | public class GenderProfile : Profile 8 | { 9 | public GenderProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/ActiveMembership/UserPlastDegreeDTO.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.ComponentModel.DataAnnotations; 3 | using EPlast.BLL.DTO.UserProfiles; 4 | 5 | namespace EPlast.BLL.DTO.ActiveMembership 6 | { 7 | public class UserPlastDegreeDto 8 | { 9 | public int Id { get; set; } 10 | [Required] 11 | public PlastDegreeDto PlastDegree { get; set; } 12 | 13 | public DateTime DateStart { get; set; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/EducatorsStaff/EducatorsStaffTypesDTO.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using EPlast.DataAccess.Entities.EducatorsStaff; 3 | 4 | namespace EPlast.BLL.DTO.EducatorsStaff 5 | { 6 | public class EducatorsStaffTypesDto 7 | { 8 | public int ID { get; set; } 9 | public string Name { get; set; } 10 | public ICollection UsersKadras { get; set; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Interfaces/Events/IEventWrapper.cs: -------------------------------------------------------------------------------- 1 | 2 | namespace EPlast.BLL.Interfaces.Events 3 | { 4 | public interface IEventWrapper 5 | { 6 | IEventCategoryManager EventCategoryManager { get; } 7 | IEventTypeManager EventTypeManager { get; } 8 | IEventStatusManager EventStatusManager { get; } 9 | IEventGalleryManager EventGalleryManager { get; } 10 | IEventSectionManager EventSectionManager { get; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/AboutBase/AboutBaseSectionProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.AboutBase; 3 | using EPlast.DataAccess.Entities; 4 | using EPlast.DataAccess.Entities.AboutBase; 5 | 6 | namespace EPlast.BLL.Mapping.AboutBase 7 | { 8 | class AboutBaseSectionProfile: Profile 9 | { 10 | public AboutBaseSectionProfile() 11 | { 12 | CreateMap().ReverseMap(); 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/Club/ClubAnnualReportProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.Club; 3 | using DatabaseEntities = EPlast.DataAccess.Entities; 4 | 5 | 6 | namespace EPlast.BLL.Mapping.Club 7 | { 8 | public class ClubAnnualReportProfile:Profile 9 | { 10 | public ClubAnnualReportProfile() 11 | { 12 | CreateMap().ReverseMap(); 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Queries/City/GetCitiesByRegionQuery.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using EPlast.BLL.DTO.City; 3 | using MediatR; 4 | 5 | namespace EPlast.BLL.Queries.City 6 | { 7 | public class GetCitiesByRegionQuery : IRequest> 8 | { 9 | public int RegionId { get; set; } 10 | 11 | public GetCitiesByRegionQuery(int regionId) 12 | { 13 | RegionId = regionId; 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Entities/Event/EventAdmin.cs: -------------------------------------------------------------------------------- 1 | using System.ComponentModel.DataAnnotations; 2 | 3 | namespace EPlast.DataAccess.Entities.Event 4 | { 5 | public class EventAdmin 6 | { 7 | public int EventID { get; set; } 8 | public Event Event { get; set; } 9 | [Required(ErrorMessage = "Вам потрібно обрати Коменданта!")] 10 | public string UserID { get; set; } 11 | public User User { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/MethodicDocument/IMethodicDocumentRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | using System.Collections.Generic; 3 | 4 | namespace EPlast.DataAccess.Repositories 5 | { 6 | public interface IMethodicDocumentRepository : IRepositoryBase 7 | { 8 | IEnumerable GetMethodicDocuments(string searchData, int page, int pageSize, string status); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Realizations/Events/EventGallaryRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | using EPlast.DataAccess.Entities.Event; 3 | 4 | namespace EPlast.DataAccess.Repositories 5 | { 6 | public class EventGallaryRepository : RepositoryBase, IEventGallaryRepository 7 | { 8 | public EventGallaryRepository(EPlastDBContext dbContext) 9 | : base(dbContext) 10 | { 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/AnnualReport/CityDTO.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using EPlast.BLL.DTO.City; 3 | 4 | namespace EPlast.BLL.DTO.AnnualReport 5 | { 6 | public class CityDto 7 | { 8 | public int ID { get; set; } 9 | public string Name { get; set; } 10 | public int RegionId { get; set; } 11 | public IEnumerable CityMembers { get; set; } 12 | public RegionDto Region { get; set; } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/City/CityLegalStatusDTO.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using EPlast.DataAccess.Entities; 3 | 4 | namespace EPlast.BLL.DTO.City 5 | { 6 | public class CityLegalStatusDto 7 | { 8 | public int Id { get; set; } 9 | public DateTime DateStart { get; set; } 10 | public DateTime? DateFinish { get; set; } 11 | public CityLegalStatusType LegalStatusType { get; set; } 12 | public int CityId { get; set; } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/Distinction/DistictionTableSettings.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace EPlast.BLL.DTO.Distinction 6 | { 7 | public class DistictionTableSettings 8 | { 9 | public IEnumerable SortByOrder { get; set; } 10 | 11 | public string SearchedData { get; set; } 12 | public int Page { get; set; } 13 | public int PageSize { get; set; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Interfaces/Statistics/IRegionStatisticsService.cs: -------------------------------------------------------------------------------- 1 | using EPlast.BLL.DTO.Statistics; 2 | using System.Collections.Generic; 3 | using System.Threading.Tasks; 4 | 5 | namespace EPlast.BLL.Interfaces.Statistics 6 | { 7 | public interface IRegionStatisticsService 8 | { 9 | Task> GetRegionsStatisticsAsync(IEnumerable regionIds, IEnumerable years, IEnumerable indicators); 10 | } 11 | } -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/ActiveMembership/UserMembershipDatesProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.ActiveMembership; 3 | using EPlast.DataAccess.Entities; 4 | 5 | namespace EPlast.BLL.Mapping.ActiveMembership 6 | { 7 | class UserMembershipDatesProfile : Profile 8 | { 9 | public UserMembershipDatesProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/ActiveMembership/UserPlastDegreePostProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.ActiveMembership; 3 | using EPlast.DataAccess.Entities; 4 | 5 | namespace EPlast.BLL.Mapping.ActiveMembership 6 | { 7 | public class UserPlastDegreePostProfile: Profile 8 | { 9 | public UserPlastDegreePostProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/Club/ClubAdministrationProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.Club; 3 | using DatabaseEntities = EPlast.DataAccess.Entities; 4 | 5 | namespace EPlast.BLL.Mapping.Club 6 | { 7 | public class ClubAdministrationProfile : Profile 8 | { 9 | public ClubAdministrationProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/Club/ClubReportCitiMembersProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.Club; 3 | using DatabaseEntities = EPlast.DataAccess.Entities; 4 | 5 | namespace EPlast.BLL.Mapping.Club 6 | { 7 | class ClubReportCitiMembersProfile : Profile 8 | { 9 | public ClubReportCitiMembersProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/GoverningBody/Announcement/UserProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.GoverningBody.Announcement; 3 | using DatabaseEntities = EPlast.DataAccess.Entities; 4 | 5 | namespace EPlast.BLL.Mapping.GoverningBody.Announcement 6 | { 7 | public class UserProfile : Profile 8 | { 9 | public UserProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/Precautions/SuggestedUserProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.PrecautionsDTO; 3 | using EPlast.BLL.DTO.UserProfiles; 4 | using EPlast.DataAccess.Entities; 5 | 6 | namespace EPlast.WebApi.Mapping.Precautions 7 | { 8 | public class SuggestedUserProfile : Profile 9 | { 10 | public SuggestedUserProfile() 11 | { 12 | CreateMap().ReverseMap(); 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Entities/AboutBase/Section.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using System.ComponentModel.DataAnnotations; 5 | 6 | namespace EPlast.DataAccess.Entities.AboutBase 7 | { 8 | public class Section 9 | { 10 | public int Id { get; set; } 11 | [Required] 12 | public string Title { get; set; } 13 | public ICollection Subsections { get; set; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Entities/Notification/NotificationType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel.DataAnnotations; 4 | 5 | namespace EPlast.DataAccess.Entities 6 | { 7 | public class NotificationType 8 | { 9 | public int Id { get; set; } 10 | [Required] 11 | public string Name { get; set; } 12 | public ICollection UserNotifications { get; set; } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Entities/UserEntities/Distinction.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.ComponentModel.DataAnnotations; 3 | 4 | 5 | namespace EPlast.DataAccess.Entities.UserEntities 6 | { 7 | public class Distinction 8 | { 9 | public int Id { get; set; } 10 | [Required] 11 | public string Name { get; set; } 12 | public ICollection UserDistinctions { get; set; } 13 | 14 | 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Realizations/City/CityMembersRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | using EPlast.DataAccess.Repositories.Contracts; 3 | 4 | namespace EPlast.DataAccess.Repositories 5 | { 6 | public class CityMembersRepository : RepositoryBase, ICityMembersRepository 7 | { 8 | public CityMembersRepository(EPlastDBContext dbContext) 9 | : base(dbContext) 10 | { 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Realizations/Club/ClubMembersRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | using EPlast.DataAccess.Repositories.Contracts; 3 | 4 | namespace EPlast.DataAccess.Repositories 5 | { 6 | public class ClubMembersRepository : RepositoryBase, IClubMembersRepository 7 | { 8 | public ClubMembersRepository(EPlastDBContext dbContext) 9 | : base(dbContext) 10 | { 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Realizations/Events/EventCategoryRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | using EPlast.DataAccess.Entities.Event; 3 | 4 | namespace EPlast.DataAccess.Repositories 5 | { 6 | public class EventCategoryRepository : RepositoryBase, IEventCategoryRepository 7 | { 8 | public EventCategoryRepository(EPlastDBContext dbContext) 9 | : base(dbContext) 10 | { 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Realizations/User/UserProfileRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | using EPlast.DataAccess.Repositories.Contracts; 3 | 4 | namespace EPlast.DataAccess.Repositories 5 | { 6 | public class UserProfileRepository : RepositoryBase, IUserProfileRepository 7 | { 8 | public UserProfileRepository(EPlastDBContext dbContext) 9 | : base(dbContext) 10 | { 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /EPlast/EPlast.WebApi/Mapping/User/UserProfileFields/EducationProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.UserProfiles; 3 | using EPlast.WebApi.Models.UserModels.UserProfileFields; 4 | 5 | namespace EPlast.WebApi.Mapping.User.UserProfileFields 6 | { 7 | public class EducationProfile:Profile 8 | { 9 | public EducationProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.WebApi/Mapping/User/UserProfileFields/ReligionProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.UserProfiles; 3 | using EPlast.WebApi.Models.UserModels.UserProfileFields; 4 | 5 | namespace EPlast.WebApi.Mapping.User.UserProfileFields 6 | { 7 | public class ReligionProfile : Profile 8 | { 9 | public ReligionProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.WebApi/Models/Terms/TermsViewModel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | 6 | namespace EPlast.WebApi.Models.Terms 7 | { 8 | public class TermsViewModel 9 | { 10 | public int TermsId { get; set; } 11 | public string TermsTitle { get; set; } 12 | public string TermsText { get; set; } 13 | public DateTime DatePublication { get; set; } 14 | } 15 | } -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/Blank/AchievementDocumentsDTO.cs: -------------------------------------------------------------------------------- 1 | using System.ComponentModel.DataAnnotations; 2 | 3 | namespace EPlast.BLL.DTO.Blank 4 | { 5 | public class AchievementDocumentsDto 6 | { 7 | public int ID { get; set; } 8 | public string BlobName { get; set; } 9 | public string FileName { get; set; } 10 | [Required] 11 | public string UserId { get; set; } 12 | 13 | public int? CourseId { get; set; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/City/CityUserDTO.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.BLL.DTO.City 2 | { 3 | public class CityUserDto 4 | { 5 | public string ID { get; set; } 6 | public string FirstName { get; set; } 7 | public string LastName { get; set; } 8 | public string FatherName { get; set; } 9 | public string ImagePath { get; set; } 10 | public string Email { get; set; } 11 | public string PhoneNumber { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/Club/ClubReportPlastDegreesDTO.cs: -------------------------------------------------------------------------------- 1 | using EPlast.BLL.DTO.ActiveMembership; 2 | 3 | namespace EPlast.BLL.DTO.Club 4 | { 5 | public class ClubReportPlastDegreesDto 6 | { 7 | public int ID { get; set; } 8 | public int ClubAnnualReportId { get; set; } 9 | public string UserId { get; set; } 10 | public int PlastDegreeId { get; set; } 11 | public PlastDegreeDto PlastDegree { get; set; } 12 | 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/Club/ClubProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.Club; 3 | using DatabaseEntities = EPlast.DataAccess.Entities; 4 | 5 | namespace EPlast.BLL.Mapping.Club 6 | { 7 | public class ClubProfile : Profile 8 | { 9 | public ClubProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | CreateMap().ReverseMap(); 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Queries/City/GetAdministrationQuery.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using EPlast.BLL.DTO.City; 3 | using MediatR; 4 | 5 | namespace EPlast.BLL.Queries.City 6 | { 7 | public class GetAdministrationQuery : IRequest> 8 | { 9 | public int CityId { get; set; } 10 | 11 | public GetAdministrationQuery(int cityId) 12 | { 13 | CityId = cityId; 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Queries/Distinction/CheckIfAdminQuery.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | using MediatR; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Text; 6 | 7 | namespace EPlast.BLL.Queries.Distinction 8 | { 9 | public class CheckIfAdminQuery: IRequest 10 | { 11 | public User User { get; set; } 12 | 13 | public CheckIfAdminQuery(User user) 14 | { 15 | User = user; 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /EPlast/EPlast.WebApi/Mapping/GoverningBody/Sector/SectorMembersProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.GoverningBody.Sector; 3 | using EPlast.WebApi.Models.GoverningBody.Sector; 4 | 5 | namespace EPlast.WebApi.Mapping.GoverningBody.Sector 6 | { 7 | public class SectorMembersProfile : Profile 8 | { 9 | public SectorMembersProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /EPlast/EPlast.WebApi/Mapping/User/UserProfileFields/UpuDegreeProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.UserProfiles; 3 | using EPlast.WebApi.Models.UserModels.UserProfileFields; 4 | 5 | namespace EPlast.WebApi.Mapping.User.UserProfileFields 6 | { 7 | public class UpuDegreeProfile : Profile 8 | { 9 | public UpuDegreeProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.WebApi/Models/City/CityMembersViewModel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace EPlast.WebApi.Models.City 4 | { 5 | public class CityMembersViewModel 6 | { 7 | public int ID { get; set; } 8 | public string UserId { get; set; } 9 | public CityUserViewModel User { get; set; } 10 | public string CityId { get; set; } 11 | public DateTime? StartDate { get; set; } 12 | public DateTime? EndDate { get; set; } 13 | } 14 | } -------------------------------------------------------------------------------- /EPlast/EPlast.WebApi/Models/UserModels/UserProfileFields/WorkViewModel.cs: -------------------------------------------------------------------------------- 1 | using System.ComponentModel.DataAnnotations; 2 | 3 | namespace EPlast.WebApi.Models.UserModels.UserProfileFields 4 | { 5 | public class WorkViewModel 6 | { 7 | public int ID { get; set; } 8 | [Display(Name = "Місце праці")] 9 | public string PlaceOfwork { get; set; } 10 | [Display(Name = "Посада")] 11 | public string Position { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Commands/Precaution/DeletePrecautionCommand.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | using MediatR; 3 | 4 | namespace EPlast.BLL.Commands.Precaution 5 | { 6 | public class DeletePrecautionCommand: IRequest 7 | { 8 | public int Id { get; set; } 9 | public User User { get; set; } 10 | public DeletePrecautionCommand(int id, User user) 11 | { 12 | Id = id; 13 | User = user; 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/Club/ClubReportCitiesDTO.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace EPlast.BLL.DTO.Club 6 | { 7 | public class ClubReportCitiesDto 8 | { 9 | public int ID { get; set; } 10 | public int ClubAnnualReportId { get; set; } 11 | public string UserId { get; set; } 12 | public int CityId { get; set; } 13 | public ClubReportCityDto City { get; set; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/AboutBase/AboutBaseSubsectionProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.AboutBase; 3 | using EPlast.DataAccess.Entities; 4 | using EPlast.DataAccess.Entities.AboutBase; 5 | 6 | namespace EPlast.BLL.Mapping.AboutBase 7 | { 8 | class AboutBaseSubsectionProfile:Profile 9 | { 10 | public AboutBaseSubsectionProfile() 11 | { 12 | CreateMap().ReverseMap(); 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/Region/RegionAdministrationProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.Region; 3 | using DatabaseEntities = EPlast.DataAccess.Entities; 4 | 5 | namespace EPlast.BLL.Mapping.Region 6 | { 7 | class RegionAdministrationProfile : Profile 8 | { 9 | public RegionAdministrationProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/Region/RegionAnnualReportProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.Region; 3 | using DatabaseEntities = EPlast.DataAccess.Entities; 4 | 5 | namespace EPlast.BLL.Mapping.Region 6 | { 7 | public class RegionAnnualReportProfile : Profile 8 | { 9 | public RegionAnnualReportProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Queries/City/GetAllCitiesOrByNameQuery.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using EPlast.BLL.DTO.City; 3 | using MediatR; 4 | 5 | namespace EPlast.BLL.Queries.City 6 | { 7 | public class GetAllCitiesOrByNameQuery : IRequest> 8 | { 9 | public string CityName{ get; set; } 10 | 11 | public GetAllCitiesOrByNameQuery(string cityName) 12 | { 13 | CityName = cityName; 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Queries/Club/GetClubHistoryMembersQuery.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using EPlast.BLL.DTO.Club; 3 | using MediatR; 4 | 5 | namespace EPlast.BLL.Queries.Club 6 | { 7 | public class GetClubHistoryMembersQuery : IRequest> 8 | { 9 | public int ClubId { get; set; } 10 | 11 | public GetClubHistoryMembersQuery(int clubId) 12 | { 13 | ClubId = clubId; 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Interfaces/Decision/IDecesion.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using EPlast.DataAccess.Entities; 3 | using EPlast.DataAccess.Entities.Decision; 4 | using System.Threading.Tasks; 5 | 6 | namespace EPlast.DataAccess.Repositories 7 | { 8 | public interface IDecesionRepository : IRepositoryBase 9 | { 10 | Task> GetDecisions(string searchData, int page, int pageSize); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Realizations/City/CityDocumentsRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | using EPlast.DataAccess.Repositories.Contracts; 3 | 4 | namespace EPlast.DataAccess.Repositories 5 | { 6 | public class CityDocumentsRepository : RepositoryBase, ICityDocumentsRepository 7 | { 8 | public CityDocumentsRepository(EPlastDBContext dbContext) 9 | : base(dbContext) 10 | { 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Realizations/Club/ClubDocumentsRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | using EPlast.DataAccess.Repositories.Contracts; 3 | 4 | namespace EPlast.DataAccess.Repositories 5 | { 6 | public class ClubDocumentsRepository : RepositoryBase, IClubDocumentsRepository 7 | { 8 | public ClubDocumentsRepository(EPlastDBContext dbContext) 9 | : base(dbContext) 10 | { 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /EPlast/EPlast.WebApi/Models/Club/ClubMembersViewModel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace EPlast.WebApi.Models.Club 4 | { 5 | public class ClubMembersViewModel 6 | { 7 | public int ID { get; set; } 8 | public string UserId { get; set; } 9 | public ClubUserViewModel User { get; set; } 10 | public string ClubId { get; set; } 11 | public DateTime? StartDate { get; set; } 12 | public DateTime? EndDate { get; set; } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/EventUser/CreateEventAdminDTO.cs: -------------------------------------------------------------------------------- 1 | using System.ComponentModel.DataAnnotations; 2 | using EPlast.BLL.DTO.UserProfiles; 3 | 4 | namespace EPlast.BLL.DTO.EventUser 5 | { 6 | public class CreateEventAdminDto 7 | { 8 | [Required(ErrorMessage = "Вам потрібно обрати Коменданта!")] 9 | public string UserID { get; set; } 10 | public int EventAdministrationTypeID { get; set; } 11 | 12 | public UserDto User { get; set; } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/EventUser/EventGeneralInfoDTO.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace EPlast.BLL.DTO.EventUser 4 | { 5 | public class EventGeneralInfoDto 6 | { 7 | public int ID { get; set; } 8 | public string EventName { get; set; } 9 | public DateTime EventDateStart { get; set; } 10 | public DateTime EventDateEnd { get; set; } 11 | public int EventStatusID { get; set; } 12 | public int EventTypeID { get; set; } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/PrecautionsDTO/SuggestedUserDto.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace EPlast.BLL.DTO.PrecautionsDTO 6 | { 7 | public class SuggestedUserDto 8 | { 9 | public string ID { get; set; } 10 | public string FirstName { get; set; } 11 | public string LastName { get; set; } 12 | public string Email { get; set; } 13 | public bool IsAvailable { get; set; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Interfaces/ConfirmedUsers/IConfirmedUsersService.cs: -------------------------------------------------------------------------------- 1 | using System.Security.Claims; 2 | using System.Threading.Tasks; 3 | using EPlast.DataAccess.Entities; 4 | using EPlast.Resources; 5 | 6 | namespace EPlast.BLL.Services.Interfaces 7 | { 8 | public interface IConfirmedUsersService 9 | { 10 | Task CreateAsync(User vaucherUser, string vaucheeId, ApproveType approveType); 11 | Task DeleteAsync(User vaucherUser, int confirmedUserId); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/City/CityProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.City; 3 | using DatabaseEntities = EPlast.DataAccess.Entities; 4 | 5 | namespace EPlast.BLL.Mapping.City 6 | { 7 | public class CityProfile : Profile 8 | { 9 | public CityProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | CreateMap().ReverseMap(); 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Queries/Club/GetClubHistoryFollowersQuery.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using EPlast.BLL.DTO.Club; 3 | using MediatR; 4 | 5 | namespace EPlast.BLL.Queries.Club 6 | { 7 | public class GetClubHistoryFollowersQuery : IRequest> 8 | { 9 | public int ClubId { get; set; } 10 | 11 | public GetClubHistoryFollowersQuery(int clubId) 12 | { 13 | ClubId = clubId; 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Entities/City/CityLegalStatus.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace EPlast.DataAccess.Entities 4 | { 5 | public class CityLegalStatus 6 | { 7 | public int Id { get; set; } 8 | public DateTime DateStart { get; set; } 9 | public DateTime? DateFinish { get; set; } 10 | public CityLegalStatusType LegalStatusType { get; set; } 11 | 12 | public int CityId { get; set; } 13 | public City City { get; set; } 14 | } 15 | } -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Entities/Club/ClubLegalStatus.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace EPlast.DataAccess.Entities 4 | { 5 | public class ClubLegalStatus 6 | { 7 | public int Id { get; set; } 8 | public DateTime DateStart { get; set; } 9 | public DateTime? DateFinish { get; set; } 10 | public ClubLegalStatusType LegalStatusType { get; set; } 11 | 12 | public int CityId { get; set; } 13 | public City City { get; set; } 14 | } 15 | } -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Entities/UserEntities/ParticipantStatus.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel.DataAnnotations; 4 | 5 | namespace EPlast.DataAccess.Entities 6 | { 7 | public class ParticipantStatus 8 | { 9 | public int ID { get; set; } 10 | [Required] 11 | public string ParticipantStatusName { get; set; } 12 | public ICollection Participants { get; set; } 13 | 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Realizations/User/ApproverRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace EPlast.DataAccess.Repositories 7 | { 8 | public class ApproverRepository : RepositoryBase, IApproverRepository 9 | { 10 | public ApproverRepository(EPlastDBContext dbContext) 11 | : base(dbContext) 12 | { 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Realizations/User/UserPlastDegreeRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | using EPlast.DataAccess.Repositories.Contracts; 3 | 4 | namespace EPlast.DataAccess.Repositories 5 | { 6 | public class UserPlastDegreeRepository : RepositoryBase, IUserPlastDegreeRepository 7 | { 8 | public UserPlastDegreeRepository(EPlastDBContext dbContext) 9 | : base(dbContext) 10 | { 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /EPlast/EPlast.WebApi/Mapping/Event/EventProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.Events; 3 | using EPlast.DataAccess.Entities.Event; 4 | 5 | namespace EPlast.WebApi.Mapping.Event 6 | { 7 | public class EventProfile : Profile 8 | { 9 | public EventProfile() 10 | { 11 | CreateMap() 12 | .ForMember(dest => dest.ID, opt => opt.MapFrom(src => src.EventCategoryId)); 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /EPlast/EPlast.WebApi/Mapping/User/UserProfileFields/NationalityProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.UserProfiles; 3 | using EPlast.WebApi.Models.UserModels.UserProfileFields; 4 | 5 | namespace EPlast.WebApi.Mapping.User.UserProfileFields 6 | { 7 | public class NationalityProfile : Profile 8 | { 9 | public NationalityProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/Events/EventParticipantDTO.cs: -------------------------------------------------------------------------------- 1 | namespace EPlast.BLL.DTO.Events 2 | { 3 | public class EventParticipantDto 4 | { 5 | public int ParticipantId { get; set; } 6 | public string FullName { get; set; } 7 | public string Email { get; set; } 8 | public string UserId { get; set; } 9 | public int StatusId { get; set; } 10 | public string Status { get; set; } 11 | public bool WasPresent { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Interfaces/EventUser/IEventsManager.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Threading.Tasks; 3 | using EPlast.BLL.DTO.EventCalendar; 4 | 5 | namespace EPlast.BLL.Interfaces.EventUser 6 | { 7 | public interface IEventsManager 8 | { 9 | Task> GetActionsAsync(); 10 | 11 | Task> GetEducationsAsync(); 12 | 13 | Task> GetCampsAsync(); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Interfaces/FormerMember/IFormerMemberAdminService.cs: -------------------------------------------------------------------------------- 1 | using System.Threading.Tasks; 2 | 3 | namespace EPlast.BLL.Interfaces.FormerMember 4 | { 5 | public interface IFormerMemberAdminService 6 | { 7 | /// 8 | /// Removes user from his admin roles when he becomes former member 9 | /// 10 | /// The id of the user 11 | Task RemoveFromAdminRolesAsync(string userId); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Queries/Club/GetClubAdministrationsQuery.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | using MediatR; 3 | using System.Collections.Generic; 4 | 5 | namespace EPlast.BLL.Queries.Club 6 | { 7 | public class GetClubAdministrationsQuery : IRequest> 8 | { 9 | public int ClubId { get; set; } 10 | 11 | public GetClubAdministrationsQuery(int clubId) 12 | { 13 | ClubId = clubId; 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Queries/TermsOfUse/GetAllUsersIdWithoutSenderQuery.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | using MediatR; 3 | using System.Collections.Generic; 4 | 5 | namespace EPlast.BLL.Queries.TermsOfUse 6 | { 7 | public class GetAllUsersIdWithoutSenderQuery : IRequest> 8 | { 9 | public User User { get; set; } 10 | 11 | public GetAllUsersIdWithoutSenderQuery(User user) 12 | { 13 | User = user; 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Services/Statistics/StatisticsItems/Interfaces/IStatisticsItem.cs: -------------------------------------------------------------------------------- 1 | using EPlast.BLL.DTO.Statistics; 2 | using EPlast.DataAccess.Entities; 3 | using System.Collections.Generic; 4 | 5 | namespace EPlast.BLL.Services.Statistics.StatisticsItems.Interfaces 6 | { 7 | public interface IStatisticsItem 8 | { 9 | StatisticsItem GetValue(MembersStatistic membersStatistic); 10 | StatisticsItem GetValue(IEnumerable membersStatistics); 11 | } 12 | } -------------------------------------------------------------------------------- /EPlast/EPlast.WebApi/Mapping/Club/ClubAdministrationProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.Club; 3 | using EPlast.DataAccess.Entities; 4 | using EPlast.WebApi.Models.Club; 5 | 6 | namespace EPlast.WebApi.Mapping.Club 7 | { 8 | public class ClubAdministrationProfile : Profile 9 | { 10 | public ClubAdministrationProfile() 11 | { 12 | CreateMap().ReverseMap(); 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /EPlast/EPlast.WebApi/Mapping/GoverningBody/GoverningBodyMembersProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.GoverningBody; 3 | using EPlast.WebApi.Models.GoverningBody; 4 | 5 | namespace EPlast.WebApi.Mapping.GoverningBody 6 | { 7 | public class GoverningBodyMembersProfile : Profile 8 | { 9 | public GoverningBodyMembersProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.WebApi/Models/MethodicDocument/MethodicDocumentCreateViewModel.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using EPlast.BLL.DTO; 3 | using Microsoft.AspNetCore.Mvc.Rendering; 4 | 5 | namespace EPlast.WebApi.Models.MethodicDocument 6 | { 7 | public class MethodicDocumentCreateViewModel 8 | { 9 | public IEnumerable GoverningBodies { get; set; } 10 | public IEnumerable MethodicDocumentTypesItems { get; set; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Commands/Decision/CreateDecisionTargetAsyncCommand.cs: -------------------------------------------------------------------------------- 1 | using EPlast.BLL.DTO; 2 | using MediatR; 3 | 4 | namespace EPlast.BLL.Commands.Decision 5 | { 6 | public class CreateDecisionTargetAsyncCommand : IRequest 7 | { 8 | public string DecisionTargetName { get; set; } 9 | public CreateDecisionTargetAsyncCommand(string decisionTargetName) 10 | { 11 | DecisionTargetName = decisionTargetName; 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/Club/ClubAdministrationStatusProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.Club; 3 | using DatabaseEntities = EPlast.DataAccess.Entities; 4 | 5 | namespace EPlast.BLL.Mapping.Club 6 | { 7 | public class ClubAdministrationStatusProfile:Profile 8 | { 9 | public ClubAdministrationStatusProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/Club/ClubReportAdministrationProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.Club; 3 | using DatabaseEntities = EPlast.DataAccess.Entities; 4 | 5 | namespace EPlast.BLL.Mapping.Club 6 | { 7 | public class ClubReportAdministrationProfile: Profile 8 | { 9 | public ClubReportAdministrationProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/Precautions/PrecautionUserProfile.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using AutoMapper; 5 | using EPlast.BLL.DTO.PrecautionsDTO; 6 | 7 | namespace EPlast.BLL.Mapping.Precautions 8 | { 9 | public class PrecautionUserProfile : Profile 10 | { 11 | public PrecautionUserProfile() 12 | { 13 | CreateMap().ReverseMap(); 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/Mapping/Region/RegionFollowerProfile.cs: -------------------------------------------------------------------------------- 1 | using AutoMapper; 2 | using EPlast.BLL.DTO.Region; 3 | using EPlast.DataAccess.Entities; 4 | 5 | namespace EPlast.BLL.Mapping.Region 6 | { 7 | class RegionFollowerProfile : Profile 8 | { 9 | public RegionFollowerProfile() 10 | { 11 | CreateMap().ReverseMap(); 12 | CreateMap().ReverseMap(); 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Realizations/City/CityDocumentTypeRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | using EPlast.DataAccess.Repositories.Contracts; 3 | 4 | namespace EPlast.DataAccess.Repositories 5 | { 6 | public class CityDocumentTypeRepository : RepositoryBase, ICityDocumentTypeRepository 7 | { 8 | public CityDocumentTypeRepository(EPlastDBContext dbContext) 9 | : base(dbContext) 10 | { 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Realizations/Club/ClubDocumentTypeRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | using EPlast.DataAccess.Repositories.Contracts; 3 | 4 | namespace EPlast.DataAccess.Repositories 5 | { 6 | public class ClubDocumentTypeRepository : RepositoryBase, IClubDocumentTypeRepository 7 | { 8 | public ClubDocumentTypeRepository(EPlastDBContext dbContext) 9 | : base(dbContext) 10 | { 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Realizations/Club/ClubReportAdminsRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | using EPlast.DataAccess.Repositories.Interfaces.Club; 3 | 4 | namespace EPlast.DataAccess.Repositories.Realizations.Club 5 | { 6 | public class ClubReportAdminsRepository : RepositoryBase, IClubReportAdminsRepository 7 | { 8 | public ClubReportAdminsRepository(EPlastDBContext dbContext):base(dbContext) 9 | { 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /EPlast/EPlast.DataAccess/Repositories/Realizations/Club/ClubReportMemberRepository.cs: -------------------------------------------------------------------------------- 1 | using EPlast.DataAccess.Entities; 2 | using EPlast.DataAccess.Repositories.Interfaces.Club; 3 | 4 | namespace EPlast.DataAccess.Repositories.Realizations.Club 5 | { 6 | public class ClubReportMemberRepository : RepositoryBase, IClubReportMemberRepository 7 | { 8 | public ClubReportMemberRepository(EPlastDBContext dbContext):base(dbContext) 9 | { 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /EPlast/EPlast.WebApi/Models/City/CityDocumentsViewModel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace EPlast.WebApi.Models.City 4 | { 5 | public class CityDocumentsViewModel 6 | { 7 | public int ID { get; set; } 8 | public DateTime? SubmitDate { get; set; } 9 | public string BlobName { get; set; } 10 | public string FileName { get; set; } 11 | public CityDocumentTypeViewModel CityDocumentType { get; set; } 12 | public int CityId { get; set; } 13 | } 14 | } -------------------------------------------------------------------------------- /manifests/test/cert-prod.yml: -------------------------------------------------------------------------------- 1 | apiVersion: cert-manager.io/v1 2 | kind: Certificate 3 | metadata: 4 | name: tls-secret-prd 5 | namespace: default 6 | spec: 7 | secretName: tls-secret-prd 8 | dnsNames: 9 | - eplast.westeurope.cloudapp.azure.com 10 | acme: 11 | config: 12 | - http01: 13 | ingressClass: nginx 14 | domains: 15 | - eplast.westeurope.cloudapp.azure.com 16 | issuerRef: 17 | name: letsencrypt-production 18 | kind: ClusterIssuer 19 | -------------------------------------------------------------------------------- /EPlast/EPlast.BLL/DTO/ActiveMembership/UserMembershipDatesDTO.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace EPlast.BLL.DTO.ActiveMembership 4 | { 5 | public class UserMembershipDatesDto 6 | { 7 | public string UserId { get; set; } 8 | public int Id { get; set; } 9 | public DateTime DateEntry { get; set; } 10 | public DateTime DateOath { get; set; } 11 | public DateTime DateMembership { get; set; } 12 | public DateTime DateEnd { get; set; } 13 | } 14 | } 15 | --------------------------------------------------------------------------------