admin
This commit is contained in:
parent
6384379808
commit
de13fb6245
BIN
.vs/ProjectEvaluation/presence.metadata.v7.bin
Normal file
BIN
.vs/ProjectEvaluation/presence.metadata.v7.bin
Normal file
Binary file not shown.
BIN
.vs/ProjectEvaluation/presence.projects.v7.bin
Normal file
BIN
.vs/ProjectEvaluation/presence.projects.v7.bin
Normal file
Binary file not shown.
BIN
.vs/presence/DesignTimeBuild/.dtbcache.v2
Normal file
BIN
.vs/presence/DesignTimeBuild/.dtbcache.v2
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1026
.vs/presence/config/applicationhost.config
Normal file
1026
.vs/presence/config/applicationhost.config
Normal file
File diff suppressed because it is too large
Load Diff
BIN
.vs/presence/v17/.futdcache.v2
Normal file
BIN
.vs/presence/v17/.futdcache.v2
Normal file
Binary file not shown.
BIN
.vs/presence/v17/.suo
Normal file
BIN
.vs/presence/v17/.suo
Normal file
Binary file not shown.
258
.vs/presence/v17/DocumentLayout.json
Normal file
258
.vs/presence/v17/DocumentLayout.json
Normal file
@ -0,0 +1,258 @@
|
|||||||
|
{
|
||||||
|
"Version": 1,
|
||||||
|
"WorkspaceRootPath": "C:\\Users\\class_student\\source\\repos\\presence\\",
|
||||||
|
"Documents": [
|
||||||
|
{
|
||||||
|
"AbsoluteMoniker": "D:0:0:{E466FB14-716E-437F-9E6C-B2A0D786694C}|presence_api\\presence_api.csproj|c:\\users\\class_student\\source\\repos\\presence\\presence_api\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||||
|
"RelativeMoniker": "D:0:0:{E466FB14-716E-437F-9E6C-B2A0D786694C}|presence_api\\presence_api.csproj|solutionrelative:presence_api\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AbsoluteMoniker": "D:0:0:{E466FB14-716E-437F-9E6C-B2A0D786694C}|presence_api\\presence_api.csproj|c:\\users\\class_student\\source\\repos\\presence\\presence_api\\controllers\\adminpanelcontroller.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||||
|
"RelativeMoniker": "D:0:0:{E466FB14-716E-437F-9E6C-B2A0D786694C}|presence_api\\presence_api.csproj|solutionrelative:presence_api\\controllers\\adminpanelcontroller.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AbsoluteMoniker": "D:0:0:{E466FB14-716E-437F-9E6C-B2A0D786694C}|presence_api\\presence_api.csproj|c:\\users\\class_student\\source\\repos\\presence\\presence_api\\serviceextensions\\serviceextensions.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||||
|
"RelativeMoniker": "D:0:0:{E466FB14-716E-437F-9E6C-B2A0D786694C}|presence_api\\presence_api.csproj|solutionrelative:presence_api\\serviceextensions\\serviceextensions.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AbsoluteMoniker": "D:0:0:{53B2C28F-CCC6-4399-BA63-8A21E2D26B73}|domain\\domain.csproj|c:\\users\\class_student\\source\\repos\\presence\\domain\\usecase\\usecaseapi.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||||
|
"RelativeMoniker": "D:0:0:{53B2C28F-CCC6-4399-BA63-8A21E2D26B73}|domain\\domain.csproj|solutionrelative:domain\\usecase\\usecaseapi.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AbsoluteMoniker": "D:0:0:{53B2C28F-CCC6-4399-BA63-8A21E2D26B73}|domain\\domain.csproj|c:\\users\\class_student\\source\\repos\\presence\\domain\\usecase\\groupusecase.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||||
|
"RelativeMoniker": "D:0:0:{53B2C28F-CCC6-4399-BA63-8A21E2D26B73}|domain\\domain.csproj|solutionrelative:domain\\usecase\\groupusecase.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AbsoluteMoniker": "D:0:0:{7E1D482B-6976-4984-85C3-AE6E789E7FC2}|data\\data.csproj|c:\\users\\class_student\\source\\repos\\presence\\data\\repository\\igrouprepository.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||||
|
"RelativeMoniker": "D:0:0:{7E1D482B-6976-4984-85C3-AE6E789E7FC2}|data\\data.csproj|solutionrelative:data\\repository\\igrouprepository.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AbsoluteMoniker": "D:0:0:{7E1D482B-6976-4984-85C3-AE6E789E7FC2}|data\\data.csproj|c:\\users\\class_student\\source\\repos\\presence\\data\\repository\\sqlgrouprepositoryimpl.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||||
|
"RelativeMoniker": "D:0:0:{7E1D482B-6976-4984-85C3-AE6E789E7FC2}|data\\data.csproj|solutionrelative:data\\repository\\sqlgrouprepositoryimpl.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AbsoluteMoniker": "D:0:0:{7E1D482B-6976-4984-85C3-AE6E789E7FC2}|data\\data.csproj|c:\\users\\class_student\\source\\repos\\presence\\data\\repository\\sqlpresencerepositoryimpl.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||||
|
"RelativeMoniker": "D:0:0:{7E1D482B-6976-4984-85C3-AE6E789E7FC2}|data\\data.csproj|solutionrelative:data\\repository\\sqlpresencerepositoryimpl.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AbsoluteMoniker": "D:0:0:{7E1D482B-6976-4984-85C3-AE6E789E7FC2}|data\\data.csproj|c:\\users\\class_student\\source\\repos\\presence\\data\\repository\\sqluserrepositoryimpl.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||||
|
"RelativeMoniker": "D:0:0:{7E1D482B-6976-4984-85C3-AE6E789E7FC2}|data\\data.csproj|solutionrelative:data\\repository\\sqluserrepositoryimpl.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AbsoluteMoniker": "D:0:0:{53B2C28F-CCC6-4399-BA63-8A21E2D26B73}|domain\\domain.csproj|c:\\users\\class_student\\source\\repos\\presence\\domain\\models\\groupwithstudentsdto.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||||
|
"RelativeMoniker": "D:0:0:{53B2C28F-CCC6-4399-BA63-8A21E2D26B73}|domain\\domain.csproj|solutionrelative:domain\\models\\groupwithstudentsdto.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AbsoluteMoniker": "D:0:0:{53B2C28F-CCC6-4399-BA63-8A21E2D26B73}|domain\\domain.csproj|c:\\users\\class_student\\source\\repos\\presence\\domain\\usecase\\userusecase.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||||
|
"RelativeMoniker": "D:0:0:{53B2C28F-CCC6-4399-BA63-8A21E2D26B73}|domain\\domain.csproj|solutionrelative:domain\\usecase\\userusecase.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AbsoluteMoniker": "D:0:0:{53B2C28F-CCC6-4399-BA63-8A21E2D26B73}|domain\\domain.csproj|c:\\users\\class_student\\source\\repos\\presence\\domain\\usecase\\usecasegeneratepresence.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||||
|
"RelativeMoniker": "D:0:0:{53B2C28F-CCC6-4399-BA63-8A21E2D26B73}|domain\\domain.csproj|solutionrelative:domain\\usecase\\usecasegeneratepresence.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AbsoluteMoniker": "D:0:0:{7E1D482B-6976-4984-85C3-AE6E789E7FC2}|data\\data.csproj|c:\\users\\class_student\\source\\repos\\presence\\data\\repository\\iuserrepository.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||||
|
"RelativeMoniker": "D:0:0:{7E1D482B-6976-4984-85C3-AE6E789E7FC2}|data\\data.csproj|solutionrelative:data\\repository\\iuserrepository.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"AbsoluteMoniker": "D:0:0:{7E1D482B-6976-4984-85C3-AE6E789E7FC2}|data\\data.csproj|c:\\users\\class_student\\source\\repos\\presence\\data\\repository\\ipresencerepository.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||||
|
"RelativeMoniker": "D:0:0:{7E1D482B-6976-4984-85C3-AE6E789E7FC2}|data\\data.csproj|solutionrelative:data\\repository\\ipresencerepository.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"DocumentGroupContainers": [
|
||||||
|
{
|
||||||
|
"Orientation": 0,
|
||||||
|
"VerticalTabListWidth": 256,
|
||||||
|
"DocumentGroups": [
|
||||||
|
{
|
||||||
|
"DockedWidth": 200,
|
||||||
|
"SelectedChildIndex": 0,
|
||||||
|
"Children": [
|
||||||
|
{
|
||||||
|
"$type": "Document",
|
||||||
|
"DocumentIndex": 0,
|
||||||
|
"Title": "Program.cs",
|
||||||
|
"DocumentMoniker": "C:\\Users\\class_student\\source\\repos\\presence\\presence_api\\Program.cs",
|
||||||
|
"RelativeDocumentMoniker": "presence_api\\Program.cs",
|
||||||
|
"ToolTip": "C:\\Users\\class_student\\source\\repos\\presence\\presence_api\\Program.cs",
|
||||||
|
"RelativeToolTip": "presence_api\\Program.cs",
|
||||||
|
"ViewState": "AQIAAAAAAAAAAAAAAAAAABAAAAAAAAAA",
|
||||||
|
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||||
|
"WhenOpened": "2024-11-20T09:04:16.471Z",
|
||||||
|
"EditorCaption": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$type": "Document",
|
||||||
|
"DocumentIndex": 2,
|
||||||
|
"Title": "ServiceExtensions.cs",
|
||||||
|
"DocumentMoniker": "C:\\Users\\class_student\\source\\repos\\presence\\presence_api\\ServiceExtensions\\ServiceExtensions.cs",
|
||||||
|
"RelativeDocumentMoniker": "presence_api\\ServiceExtensions\\ServiceExtensions.cs",
|
||||||
|
"ToolTip": "C:\\Users\\class_student\\source\\repos\\presence\\presence_api\\ServiceExtensions\\ServiceExtensions.cs",
|
||||||
|
"RelativeToolTip": "presence_api\\ServiceExtensions\\ServiceExtensions.cs",
|
||||||
|
"ViewState": "AQIAABIAAAAAAAAAAAAkwCYAAAAAAAAA",
|
||||||
|
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||||
|
"WhenOpened": "2024-11-20T08:58:05.371Z",
|
||||||
|
"EditorCaption": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$type": "Document",
|
||||||
|
"DocumentIndex": 10,
|
||||||
|
"Title": "UserUseCase.cs",
|
||||||
|
"DocumentMoniker": "C:\\Users\\class_student\\source\\repos\\presence\\domain\\UseCase\\UserUseCase.cs",
|
||||||
|
"RelativeDocumentMoniker": "domain\\UseCase\\UserUseCase.cs",
|
||||||
|
"ToolTip": "C:\\Users\\class_student\\source\\repos\\presence\\domain\\UseCase\\UserUseCase.cs",
|
||||||
|
"RelativeToolTip": "domain\\UseCase\\UserUseCase.cs",
|
||||||
|
"ViewState": "AQIAAGQAAAAAAAAAAAAAwHEAAAAHAAAA",
|
||||||
|
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||||
|
"WhenOpened": "2024-11-20T07:06:29.916Z",
|
||||||
|
"EditorCaption": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$type": "Document",
|
||||||
|
"DocumentIndex": 3,
|
||||||
|
"Title": "UseCaseAPI.cs",
|
||||||
|
"DocumentMoniker": "C:\\Users\\class_student\\source\\repos\\presence\\domain\\UseCase\\UseCaseAPI.cs",
|
||||||
|
"RelativeDocumentMoniker": "domain\\UseCase\\UseCaseAPI.cs",
|
||||||
|
"ToolTip": "C:\\Users\\class_student\\source\\repos\\presence\\domain\\UseCase\\UseCaseAPI.cs",
|
||||||
|
"RelativeToolTip": "domain\\UseCase\\UseCaseAPI.cs",
|
||||||
|
"ViewState": "AQIAABMAAAAAAAAAAAAwwCoAAAARAAAA",
|
||||||
|
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||||
|
"WhenOpened": "2024-11-20T07:37:53.868Z",
|
||||||
|
"EditorCaption": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$type": "Document",
|
||||||
|
"DocumentIndex": 9,
|
||||||
|
"Title": "GroupWithStudentsDto.cs",
|
||||||
|
"DocumentMoniker": "C:\\Users\\class_student\\source\\repos\\presence\\domain\\Models\\GroupWithStudentsDto.cs",
|
||||||
|
"RelativeDocumentMoniker": "domain\\Models\\GroupWithStudentsDto.cs",
|
||||||
|
"ToolTip": "C:\\Users\\class_student\\source\\repos\\presence\\domain\\Models\\GroupWithStudentsDto.cs",
|
||||||
|
"RelativeToolTip": "domain\\Models\\GroupWithStudentsDto.cs",
|
||||||
|
"ViewState": "AQIAAAAAAAAAAAAAAAAAAA0AAAAIAAAA",
|
||||||
|
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||||
|
"WhenOpened": "2024-11-20T07:36:54.393Z",
|
||||||
|
"EditorCaption": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$type": "Document",
|
||||||
|
"DocumentIndex": 4,
|
||||||
|
"Title": "GroupUseCase.cs",
|
||||||
|
"DocumentMoniker": "C:\\Users\\class_student\\source\\repos\\presence\\domain\\UseCase\\GroupUseCase.cs",
|
||||||
|
"RelativeDocumentMoniker": "domain\\UseCase\\GroupUseCase.cs",
|
||||||
|
"ToolTip": "C:\\Users\\class_student\\source\\repos\\presence\\domain\\UseCase\\GroupUseCase.cs",
|
||||||
|
"RelativeToolTip": "domain\\UseCase\\GroupUseCase.cs",
|
||||||
|
"ViewState": "AQIAADQAAAAAAAAAAAAYwEkAAAAAAAAA",
|
||||||
|
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||||
|
"WhenOpened": "2024-11-20T07:05:40.692Z",
|
||||||
|
"EditorCaption": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$type": "Document",
|
||||||
|
"DocumentIndex": 7,
|
||||||
|
"Title": "SQLPresenceRepositoryImpl.cs",
|
||||||
|
"DocumentMoniker": "C:\\Users\\class_student\\source\\repos\\presence\\data\\Repository\\SQLPresenceRepositoryImpl.cs",
|
||||||
|
"RelativeDocumentMoniker": "data\\Repository\\SQLPresenceRepositoryImpl.cs",
|
||||||
|
"ToolTip": "C:\\Users\\class_student\\source\\repos\\presence\\data\\Repository\\SQLPresenceRepositoryImpl.cs",
|
||||||
|
"RelativeToolTip": "data\\Repository\\SQLPresenceRepositoryImpl.cs",
|
||||||
|
"ViewState": "AQIAAMoAAAAAAAAAAAAYwN0AAAAFAAAA",
|
||||||
|
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||||
|
"WhenOpened": "2024-11-20T07:11:00.628Z",
|
||||||
|
"EditorCaption": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$type": "Document",
|
||||||
|
"DocumentIndex": 8,
|
||||||
|
"Title": "SQLUserRepositoryImpl.cs",
|
||||||
|
"DocumentMoniker": "C:\\Users\\class_student\\source\\repos\\presence\\data\\Repository\\SQLUserRepositoryImpl.cs",
|
||||||
|
"RelativeDocumentMoniker": "data\\Repository\\SQLUserRepositoryImpl.cs",
|
||||||
|
"ToolTip": "C:\\Users\\class_student\\source\\repos\\presence\\data\\Repository\\SQLUserRepositoryImpl.cs",
|
||||||
|
"RelativeToolTip": "data\\Repository\\SQLUserRepositoryImpl.cs",
|
||||||
|
"ViewState": "AQIAAEoAAAAAAAAAAAAQwGYAAAAAAAAA",
|
||||||
|
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||||
|
"WhenOpened": "2024-11-20T07:07:02.478Z",
|
||||||
|
"EditorCaption": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$type": "Document",
|
||||||
|
"DocumentIndex": 1,
|
||||||
|
"Title": "AdminPanelController.cs",
|
||||||
|
"DocumentMoniker": "C:\\Users\\class_student\\source\\repos\\presence\\presence_api\\Controllers\\AdminPanelController.cs",
|
||||||
|
"RelativeDocumentMoniker": "presence_api\\Controllers\\AdminPanelController.cs",
|
||||||
|
"ToolTip": "C:\\Users\\class_student\\source\\repos\\presence\\presence_api\\Controllers\\AdminPanelController.cs",
|
||||||
|
"RelativeToolTip": "presence_api\\Controllers\\AdminPanelController.cs",
|
||||||
|
"ViewState": "AQIAAGAAAAAAAAAAAAAswHsAAAA8AAAA",
|
||||||
|
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||||
|
"WhenOpened": "2024-11-20T07:19:40.565Z",
|
||||||
|
"EditorCaption": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$type": "Document",
|
||||||
|
"DocumentIndex": 5,
|
||||||
|
"Title": "IGroupRepository.cs",
|
||||||
|
"DocumentMoniker": "C:\\Users\\class_student\\source\\repos\\presence\\data\\Repository\\IGroupRepository.cs",
|
||||||
|
"RelativeDocumentMoniker": "data\\Repository\\IGroupRepository.cs",
|
||||||
|
"ToolTip": "C:\\Users\\class_student\\source\\repos\\presence\\data\\Repository\\IGroupRepository.cs",
|
||||||
|
"RelativeToolTip": "data\\Repository\\IGroupRepository.cs",
|
||||||
|
"ViewState": "AQIAAAAAAAAAAAAAAAAAABAAAAAoAAAA",
|
||||||
|
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||||
|
"WhenOpened": "2024-11-20T07:08:19.923Z",
|
||||||
|
"EditorCaption": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$type": "Document",
|
||||||
|
"DocumentIndex": 6,
|
||||||
|
"Title": "SQLGroupRepositoryImpl.cs",
|
||||||
|
"DocumentMoniker": "C:\\Users\\class_student\\source\\repos\\presence\\data\\Repository\\SQLGroupRepositoryImpl.cs",
|
||||||
|
"RelativeDocumentMoniker": "data\\Repository\\SQLGroupRepositoryImpl.cs",
|
||||||
|
"ToolTip": "C:\\Users\\class_student\\source\\repos\\presence\\data\\Repository\\SQLGroupRepositoryImpl.cs",
|
||||||
|
"RelativeToolTip": "data\\Repository\\SQLGroupRepositoryImpl.cs",
|
||||||
|
"ViewState": "AQIAABYAAAAAAAAAAAAgwCwAAAAAAAAA",
|
||||||
|
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||||
|
"WhenOpened": "2024-11-20T08:36:33.509Z",
|
||||||
|
"EditorCaption": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$type": "Document",
|
||||||
|
"DocumentIndex": 11,
|
||||||
|
"Title": "UseCaseGeneratePresence.cs",
|
||||||
|
"DocumentMoniker": "C:\\Users\\class_student\\source\\repos\\presence\\domain\\UseCase\\UseCaseGeneratePresence.cs",
|
||||||
|
"RelativeDocumentMoniker": "domain\\UseCase\\UseCaseGeneratePresence.cs",
|
||||||
|
"ToolTip": "C:\\Users\\class_student\\source\\repos\\presence\\domain\\UseCase\\UseCaseGeneratePresence.cs",
|
||||||
|
"RelativeToolTip": "domain\\UseCase\\UseCaseGeneratePresence.cs",
|
||||||
|
"ViewState": "AQIAAAMAAAAAAAAAAAAAABcAAAAaAAAA",
|
||||||
|
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||||
|
"WhenOpened": "2024-11-20T07:11:44.683Z",
|
||||||
|
"EditorCaption": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$type": "Document",
|
||||||
|
"DocumentIndex": 12,
|
||||||
|
"Title": "IUserRepository.cs",
|
||||||
|
"DocumentMoniker": "C:\\Users\\class_student\\source\\repos\\presence\\data\\Repository\\IUserRepository.cs",
|
||||||
|
"RelativeDocumentMoniker": "data\\Repository\\IUserRepository.cs",
|
||||||
|
"ToolTip": "C:\\Users\\class_student\\source\\repos\\presence\\data\\Repository\\IUserRepository.cs",
|
||||||
|
"RelativeToolTip": "data\\Repository\\IUserRepository.cs",
|
||||||
|
"ViewState": "AQIAAAkAAAAAAAAAAAAAABMAAAAcAAAA",
|
||||||
|
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||||
|
"WhenOpened": "2024-11-20T07:08:31.58Z",
|
||||||
|
"EditorCaption": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$type": "Document",
|
||||||
|
"DocumentIndex": 13,
|
||||||
|
"Title": "IPresenceRepository.cs",
|
||||||
|
"DocumentMoniker": "C:\\Users\\class_student\\source\\repos\\presence\\data\\Repository\\IPresenceRepository.cs",
|
||||||
|
"RelativeDocumentMoniker": "data\\Repository\\IPresenceRepository.cs",
|
||||||
|
"ToolTip": "C:\\Users\\class_student\\source\\repos\\presence\\data\\Repository\\IPresenceRepository.cs",
|
||||||
|
"RelativeToolTip": "data\\Repository\\IPresenceRepository.cs",
|
||||||
|
"ViewState": "AQIAAAYAAAAAAAAAAAAAABUAAAAAAAAA",
|
||||||
|
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||||
|
"WhenOpened": "2024-11-20T07:08:43.328Z",
|
||||||
|
"EditorCaption": ""
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -14,7 +14,7 @@ using System.Reflection;
|
|||||||
[assembly: System.Reflection.AssemblyCompanyAttribute("console_ui")]
|
[assembly: System.Reflection.AssemblyCompanyAttribute("console_ui")]
|
||||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+839362e7d0b5dfb5bcc210987efb21e47bd4ac2f")]
|
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+6384379808b7c29803411ab478a3e004c268439d")]
|
||||||
[assembly: System.Reflection.AssemblyProductAttribute("console_ui")]
|
[assembly: System.Reflection.AssemblyProductAttribute("console_ui")]
|
||||||
[assembly: System.Reflection.AssemblyTitleAttribute("console_ui")]
|
[assembly: System.Reflection.AssemblyTitleAttribute("console_ui")]
|
||||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||||
|
@ -1 +1 @@
|
|||||||
6d93ad453d2e7d50d36c9ca04017ca5cd10b3e5ef1de27876bbc4533fa29b306
|
aefc6c5dc3f450c17468f92682798ffb637b2d0e00bb63b044a948e0fbd9a591
|
||||||
|
@ -8,6 +8,6 @@ build_property.PlatformNeutralAssembly =
|
|||||||
build_property.EnforceExtendedAnalyzerRules =
|
build_property.EnforceExtendedAnalyzerRules =
|
||||||
build_property._SupportedPlatformList = Linux,macOS,Windows
|
build_property._SupportedPlatformList = Linux,macOS,Windows
|
||||||
build_property.RootNamespace = console_ui
|
build_property.RootNamespace = console_ui
|
||||||
build_property.ProjectDir = C:\Users\class_student\Source\Repos\presence\console_ui\
|
build_property.ProjectDir = C:\Users\class_student\source\repos\presence\console_ui\
|
||||||
build_property.EnableComHosting =
|
build_property.EnableComHosting =
|
||||||
build_property.EnableGeneratedComInterfaceComImportInterop =
|
build_property.EnableGeneratedComInterfaceComImportInterop =
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,17 +1,17 @@
|
|||||||
{
|
{
|
||||||
"format": 1,
|
"format": 1,
|
||||||
"restore": {
|
"restore": {
|
||||||
"C:\\Users\\class_student\\Source\\Repos\\presence\\console_ui\\console_ui.csproj": {}
|
"C:\\Users\\class_student\\source\\repos\\presence\\console_ui\\console_ui.csproj": {}
|
||||||
},
|
},
|
||||||
"projects": {
|
"projects": {
|
||||||
"C:\\Users\\class_student\\Source\\Repos\\presence\\console_ui\\console_ui.csproj": {
|
"C:\\Users\\class_student\\source\\repos\\presence\\console_ui\\console_ui.csproj": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "C:\\Users\\class_student\\Source\\Repos\\presence\\console_ui\\console_ui.csproj",
|
"projectUniqueName": "C:\\Users\\class_student\\source\\repos\\presence\\console_ui\\console_ui.csproj",
|
||||||
"projectName": "console_ui",
|
"projectName": "console_ui",
|
||||||
"projectPath": "C:\\Users\\class_student\\Source\\Repos\\presence\\console_ui\\console_ui.csproj",
|
"projectPath": "C:\\Users\\class_student\\source\\repos\\presence\\console_ui\\console_ui.csproj",
|
||||||
"packagesPath": "C:\\Users\\class_student\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\class_student\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\class_student\\Source\\Repos\\presence\\console_ui\\obj\\",
|
"outputPath": "C:\\Users\\class_student\\source\\repos\\presence\\console_ui\\obj\\",
|
||||||
"projectStyle": "PackageReference",
|
"projectStyle": "PackageReference",
|
||||||
"fallbackFolders": [
|
"fallbackFolders": [
|
||||||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
||||||
@ -32,14 +32,14 @@
|
|||||||
"net8.0": {
|
"net8.0": {
|
||||||
"targetAlias": "net8.0",
|
"targetAlias": "net8.0",
|
||||||
"projectReferences": {
|
"projectReferences": {
|
||||||
"C:\\Users\\class_student\\Source\\Repos\\presence\\data\\data.csproj": {
|
"C:\\Users\\class_student\\source\\repos\\presence\\data\\data.csproj": {
|
||||||
"projectPath": "C:\\Users\\class_student\\Source\\Repos\\presence\\data\\data.csproj"
|
"projectPath": "C:\\Users\\class_student\\source\\repos\\presence\\data\\data.csproj"
|
||||||
},
|
},
|
||||||
"C:\\Users\\class_student\\Source\\Repos\\presence\\domain\\domain.csproj": {
|
"C:\\Users\\class_student\\source\\repos\\presence\\domain\\domain.csproj": {
|
||||||
"projectPath": "C:\\Users\\class_student\\Source\\Repos\\presence\\domain\\domain.csproj"
|
"projectPath": "C:\\Users\\class_student\\source\\repos\\presence\\domain\\domain.csproj"
|
||||||
},
|
},
|
||||||
"C:\\Users\\class_student\\Source\\Repos\\presence\\ui\\ui.csproj": {
|
"C:\\Users\\class_student\\source\\repos\\presence\\ui\\ui.csproj": {
|
||||||
"projectPath": "C:\\Users\\class_student\\Source\\Repos\\presence\\ui\\ui.csproj"
|
"projectPath": "C:\\Users\\class_student\\source\\repos\\presence\\ui\\ui.csproj"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -92,14 +92,14 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"C:\\Users\\class_student\\Source\\Repos\\presence\\data\\data.csproj": {
|
"C:\\Users\\class_student\\source\\repos\\presence\\data\\data.csproj": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "C:\\Users\\class_student\\Source\\Repos\\presence\\data\\data.csproj",
|
"projectUniqueName": "C:\\Users\\class_student\\source\\repos\\presence\\data\\data.csproj",
|
||||||
"projectName": "data",
|
"projectName": "data",
|
||||||
"projectPath": "C:\\Users\\class_student\\Source\\Repos\\presence\\data\\data.csproj",
|
"projectPath": "C:\\Users\\class_student\\source\\repos\\presence\\data\\data.csproj",
|
||||||
"packagesPath": "C:\\Users\\class_student\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\class_student\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\class_student\\Source\\Repos\\presence\\data\\obj\\",
|
"outputPath": "C:\\Users\\class_student\\source\\repos\\presence\\data\\obj\\",
|
||||||
"projectStyle": "PackageReference",
|
"projectStyle": "PackageReference",
|
||||||
"fallbackFolders": [
|
"fallbackFolders": [
|
||||||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
||||||
@ -172,14 +172,14 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"C:\\Users\\class_student\\Source\\Repos\\presence\\domain\\domain.csproj": {
|
"C:\\Users\\class_student\\source\\repos\\presence\\domain\\domain.csproj": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "C:\\Users\\class_student\\Source\\Repos\\presence\\domain\\domain.csproj",
|
"projectUniqueName": "C:\\Users\\class_student\\source\\repos\\presence\\domain\\domain.csproj",
|
||||||
"projectName": "domain",
|
"projectName": "domain",
|
||||||
"projectPath": "C:\\Users\\class_student\\Source\\Repos\\presence\\domain\\domain.csproj",
|
"projectPath": "C:\\Users\\class_student\\source\\repos\\presence\\domain\\domain.csproj",
|
||||||
"packagesPath": "C:\\Users\\class_student\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\class_student\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\class_student\\Source\\Repos\\presence\\domain\\obj\\",
|
"outputPath": "C:\\Users\\class_student\\source\\repos\\presence\\domain\\obj\\",
|
||||||
"projectStyle": "PackageReference",
|
"projectStyle": "PackageReference",
|
||||||
"fallbackFolders": [
|
"fallbackFolders": [
|
||||||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
||||||
@ -200,8 +200,8 @@
|
|||||||
"net8.0": {
|
"net8.0": {
|
||||||
"targetAlias": "net8.0",
|
"targetAlias": "net8.0",
|
||||||
"projectReferences": {
|
"projectReferences": {
|
||||||
"C:\\Users\\class_student\\Source\\Repos\\presence\\data\\data.csproj": {
|
"C:\\Users\\class_student\\source\\repos\\presence\\data\\data.csproj": {
|
||||||
"projectPath": "C:\\Users\\class_student\\Source\\Repos\\presence\\data\\data.csproj"
|
"projectPath": "C:\\Users\\class_student\\source\\repos\\presence\\data\\data.csproj"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -246,14 +246,14 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"C:\\Users\\class_student\\Source\\Repos\\presence\\ui\\ui.csproj": {
|
"C:\\Users\\class_student\\source\\repos\\presence\\ui\\ui.csproj": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "C:\\Users\\class_student\\Source\\Repos\\presence\\ui\\ui.csproj",
|
"projectUniqueName": "C:\\Users\\class_student\\source\\repos\\presence\\ui\\ui.csproj",
|
||||||
"projectName": "ui",
|
"projectName": "ui",
|
||||||
"projectPath": "C:\\Users\\class_student\\Source\\Repos\\presence\\ui\\ui.csproj",
|
"projectPath": "C:\\Users\\class_student\\source\\repos\\presence\\ui\\ui.csproj",
|
||||||
"packagesPath": "C:\\Users\\class_student\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\class_student\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\class_student\\Source\\Repos\\presence\\ui\\obj\\",
|
"outputPath": "C:\\Users\\class_student\\source\\repos\\presence\\ui\\obj\\",
|
||||||
"projectStyle": "PackageReference",
|
"projectStyle": "PackageReference",
|
||||||
"fallbackFolders": [
|
"fallbackFolders": [
|
||||||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
||||||
@ -274,8 +274,8 @@
|
|||||||
"net8.0": {
|
"net8.0": {
|
||||||
"targetAlias": "net8.0",
|
"targetAlias": "net8.0",
|
||||||
"projectReferences": {
|
"projectReferences": {
|
||||||
"C:\\Users\\class_student\\Source\\Repos\\presence\\domain\\domain.csproj": {
|
"C:\\Users\\class_student\\source\\repos\\presence\\domain\\domain.csproj": {
|
||||||
"projectPath": "C:\\Users\\class_student\\Source\\Repos\\presence\\domain\\domain.csproj"
|
"projectPath": "C:\\Users\\class_student\\source\\repos\\presence\\domain\\domain.csproj"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1062,11 +1062,11 @@
|
|||||||
"project": {
|
"project": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "C:\\Users\\class_student\\Source\\Repos\\presence\\console_ui\\console_ui.csproj",
|
"projectUniqueName": "C:\\Users\\class_student\\source\\repos\\presence\\console_ui\\console_ui.csproj",
|
||||||
"projectName": "console_ui",
|
"projectName": "console_ui",
|
||||||
"projectPath": "C:\\Users\\class_student\\Source\\Repos\\presence\\console_ui\\console_ui.csproj",
|
"projectPath": "C:\\Users\\class_student\\source\\repos\\presence\\console_ui\\console_ui.csproj",
|
||||||
"packagesPath": "C:\\Users\\class_student\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\class_student\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\class_student\\Source\\Repos\\presence\\console_ui\\obj\\",
|
"outputPath": "C:\\Users\\class_student\\source\\repos\\presence\\console_ui\\obj\\",
|
||||||
"projectStyle": "PackageReference",
|
"projectStyle": "PackageReference",
|
||||||
"fallbackFolders": [
|
"fallbackFolders": [
|
||||||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
||||||
@ -1087,14 +1087,14 @@
|
|||||||
"net8.0": {
|
"net8.0": {
|
||||||
"targetAlias": "net8.0",
|
"targetAlias": "net8.0",
|
||||||
"projectReferences": {
|
"projectReferences": {
|
||||||
"C:\\Users\\class_student\\Source\\Repos\\presence\\data\\data.csproj": {
|
"C:\\Users\\class_student\\source\\repos\\presence\\data\\data.csproj": {
|
||||||
"projectPath": "C:\\Users\\class_student\\Source\\Repos\\presence\\data\\data.csproj"
|
"projectPath": "C:\\Users\\class_student\\source\\repos\\presence\\data\\data.csproj"
|
||||||
},
|
},
|
||||||
"C:\\Users\\class_student\\Source\\Repos\\presence\\domain\\domain.csproj": {
|
"C:\\Users\\class_student\\source\\repos\\presence\\domain\\domain.csproj": {
|
||||||
"projectPath": "C:\\Users\\class_student\\Source\\Repos\\presence\\domain\\domain.csproj"
|
"projectPath": "C:\\Users\\class_student\\source\\repos\\presence\\domain\\domain.csproj"
|
||||||
},
|
},
|
||||||
"C:\\Users\\class_student\\Source\\Repos\\presence\\ui\\ui.csproj": {
|
"C:\\Users\\class_student\\source\\repos\\presence\\ui\\ui.csproj": {
|
||||||
"projectPath": "C:\\Users\\class_student\\Source\\Repos\\presence\\ui\\ui.csproj"
|
"projectPath": "C:\\Users\\class_student\\source\\repos\\presence\\ui\\ui.csproj"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"version": 2,
|
"version": 2,
|
||||||
"dgSpecHash": "yfJCYMI2ah3sfp2aK6Ke6ce9kWJKxkrL993rMZ5hRfO/n/HG67U+7imrDbnyVEbFgC9j14ziYrduCNKKBW5lDw==",
|
"dgSpecHash": "8SnqRBoHTrXC6zNRgD35iWqKQFrMMB1xnQ0tZsRXiQnDkKksHZdiEnJsZgKSiOtjn3nAN28hgxy0Jfv7jHYl4g==",
|
||||||
"success": true,
|
"success": true,
|
||||||
"projectFilePath": "C:\\Users\\class_student\\Source\\Repos\\presence\\console_ui\\console_ui.csproj",
|
"projectFilePath": "C:\\Users\\class_student\\source\\repos\\presence\\console_ui\\console_ui.csproj",
|
||||||
"expectedPackageFiles": [
|
"expectedPackageFiles": [
|
||||||
"C:\\Users\\class_student\\.nuget\\packages\\closedxml\\0.104.1\\closedxml.0.104.1.nupkg.sha512",
|
"C:\\Users\\class_student\\.nuget\\packages\\closedxml\\0.104.1\\closedxml.0.104.1.nupkg.sha512",
|
||||||
"C:\\Users\\class_student\\.nuget\\packages\\closedxml.parser\\1.2.0\\closedxml.parser.1.2.0.nupkg.sha512",
|
"C:\\Users\\class_student\\.nuget\\packages\\closedxml.parser\\1.2.0\\closedxml.parser.1.2.0.nupkg.sha512",
|
||||||
|
@ -14,9 +14,13 @@ namespace data.Repository
|
|||||||
bool RemoveGroupById(int groupID);
|
bool RemoveGroupById(int groupID);
|
||||||
bool UpdateGroupById(int groupID, GroupLocalEntity updatedGroup);
|
bool UpdateGroupById(int groupID, GroupLocalEntity updatedGroup);
|
||||||
GroupLocalEntity GetGroupById(int groupID);
|
GroupLocalEntity GetGroupById(int groupID);
|
||||||
bool AddGroup(GroupLocalEntity newGroup);
|
int AddGroup(GroupDao newGroup);
|
||||||
|
|
||||||
public List<GroupDao> GetAllGroupWithStident();
|
public List<GroupDao> GetAllGroupWithStident();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -17,5 +17,8 @@ namespace data.Repository
|
|||||||
void MarkUserAsAbsent(Guid userGuid, int firstLessonNumber, int lastLessonNumber);
|
void MarkUserAsAbsent(Guid userGuid, int firstLessonNumber, int lastLessonNumber);
|
||||||
void AddPresence(PresenceLocalEntity presence);
|
void AddPresence(PresenceLocalEntity presence);
|
||||||
List<PresenceDao> GetAttendanceByGroup(int groupId);
|
List<PresenceDao> GetAttendanceByGroup(int groupId);
|
||||||
|
|
||||||
|
void ClearAllPresence();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -17,6 +17,7 @@ namespace data.Repository
|
|||||||
|
|
||||||
public UserDao GetUserInfo(Guid userGuid);
|
public UserDao GetUserInfo(Guid userGuid);
|
||||||
|
|
||||||
|
bool AddUser(UserDao user);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -31,19 +31,20 @@ public class SQLGroupRepositoryImpl : IGroupRepository
|
|||||||
.ToList();
|
.ToList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public bool AddGroup(GroupLocalEntity group)
|
|
||||||
{
|
|
||||||
if (_remoteDatabaseContext.Groups.Any(g => g.Id == group.Id))
|
|
||||||
return false;
|
|
||||||
|
|
||||||
var groupDao = new GroupDao { Id = group.Id, Name = group.Name };
|
public int AddGroup(GroupDao group)
|
||||||
_remoteDatabaseContext.Groups.Add(groupDao);
|
{
|
||||||
|
if (_remoteDatabaseContext.Groups.Any(g => g.Name == group.Name))
|
||||||
|
return -1; // Например, если группа с таким именем уже существует, возвращаем -1
|
||||||
|
|
||||||
|
_remoteDatabaseContext.Groups.Add(group);
|
||||||
_remoteDatabaseContext.SaveChanges();
|
_remoteDatabaseContext.SaveChanges();
|
||||||
return true;
|
|
||||||
|
return group.Id; // Возвращаем ID добавленной группы
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public bool UpdateGroupById(int groupID, GroupLocalEntity updatedGroup)
|
public bool UpdateGroupById(int groupID, GroupLocalEntity updatedGroup)
|
||||||
{
|
{
|
||||||
var existingGroup = _remoteDatabaseContext.Groups.FirstOrDefault(g => g.Id == groupID);
|
var existingGroup = _remoteDatabaseContext.Groups.FirstOrDefault(g => g.Id == groupID);
|
||||||
@ -75,4 +76,5 @@ public class SQLGroupRepositoryImpl : IGroupRepository
|
|||||||
.ToList();
|
.ToList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -212,6 +212,12 @@ namespace data.Repository
|
|||||||
.ToList();
|
.ToList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void ClearAllPresence()
|
||||||
|
{
|
||||||
|
var allPresenceRecords = _remoteDatabaseContext.PresenceDaos.ToList();
|
||||||
|
_remoteDatabaseContext.PresenceDaos.RemoveRange(allPresenceRecords);
|
||||||
|
_remoteDatabaseContext.SaveChanges();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -74,5 +74,32 @@ namespace data.Repository
|
|||||||
.FirstOrDefault(u => u.Guid == userGuid);
|
.FirstOrDefault(u => u.Guid == userGuid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public bool AddUser(UserDao user)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
|
||||||
|
var userDao = new UserDao
|
||||||
|
{
|
||||||
|
Guid = user.Guid,
|
||||||
|
FIO = user.FIO,
|
||||||
|
GroupID = user.GroupID // Привязываем к группе
|
||||||
|
};
|
||||||
|
|
||||||
|
// Добавляем пользователя в контекст базы данных
|
||||||
|
_remoteDatabaseContext.Users.Add(userDao);
|
||||||
|
_remoteDatabaseContext.SaveChanges(); // Сохраняем изменения
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
catch (System.Exception ex)
|
||||||
|
{
|
||||||
|
// Логирование ошибки (при необходимости)
|
||||||
|
Console.WriteLine($"Ошибка при добавлении пользователя: {ex.Message}");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Binary file not shown.
Binary file not shown.
@ -14,7 +14,7 @@ using System.Reflection;
|
|||||||
[assembly: System.Reflection.AssemblyCompanyAttribute("data")]
|
[assembly: System.Reflection.AssemblyCompanyAttribute("data")]
|
||||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+839362e7d0b5dfb5bcc210987efb21e47bd4ac2f")]
|
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+6384379808b7c29803411ab478a3e004c268439d")]
|
||||||
[assembly: System.Reflection.AssemblyProductAttribute("data")]
|
[assembly: System.Reflection.AssemblyProductAttribute("data")]
|
||||||
[assembly: System.Reflection.AssemblyTitleAttribute("data")]
|
[assembly: System.Reflection.AssemblyTitleAttribute("data")]
|
||||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||||
|
@ -1 +1 @@
|
|||||||
3477ca2dab72974277df7dd17d47bbf7d5922c6bd6f9dc0ad19320b22ad1bbc1
|
d053d29ce72b207708a24cb5821f2b33f56a042e82b2b45f447e49962e8a3ad9
|
||||||
|
@ -8,6 +8,6 @@ build_property.PlatformNeutralAssembly =
|
|||||||
build_property.EnforceExtendedAnalyzerRules =
|
build_property.EnforceExtendedAnalyzerRules =
|
||||||
build_property._SupportedPlatformList = Linux,macOS,Windows
|
build_property._SupportedPlatformList = Linux,macOS,Windows
|
||||||
build_property.RootNamespace = data
|
build_property.RootNamespace = data
|
||||||
build_property.ProjectDir = C:\Users\class_student\Source\Repos\presence\data\
|
build_property.ProjectDir = C:\Users\class_student\source\repos\presence\data\
|
||||||
build_property.EnableComHosting =
|
build_property.EnableComHosting =
|
||||||
build_property.EnableGeneratedComInterfaceComImportInterop =
|
build_property.EnableGeneratedComInterfaceComImportInterop =
|
||||||
|
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
|||||||
ad0a4479b59a7ef873597a5be47af04d30bf61b8a15ec5b82893655c935f039d
|
b84345f992d3666be6b0e025aa74afc1a71aca079d190d689c0864402727cdd0
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,17 +1,17 @@
|
|||||||
{
|
{
|
||||||
"format": 1,
|
"format": 1,
|
||||||
"restore": {
|
"restore": {
|
||||||
"C:\\Users\\class_student\\Source\\Repos\\presence\\data\\data.csproj": {}
|
"C:\\Users\\class_student\\source\\repos\\presence\\data\\data.csproj": {}
|
||||||
},
|
},
|
||||||
"projects": {
|
"projects": {
|
||||||
"C:\\Users\\class_student\\Source\\Repos\\presence\\data\\data.csproj": {
|
"C:\\Users\\class_student\\source\\repos\\presence\\data\\data.csproj": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "C:\\Users\\class_student\\Source\\Repos\\presence\\data\\data.csproj",
|
"projectUniqueName": "C:\\Users\\class_student\\source\\repos\\presence\\data\\data.csproj",
|
||||||
"projectName": "data",
|
"projectName": "data",
|
||||||
"projectPath": "C:\\Users\\class_student\\Source\\Repos\\presence\\data\\data.csproj",
|
"projectPath": "C:\\Users\\class_student\\source\\repos\\presence\\data\\data.csproj",
|
||||||
"packagesPath": "C:\\Users\\class_student\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\class_student\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\class_student\\Source\\Repos\\presence\\data\\obj\\",
|
"outputPath": "C:\\Users\\class_student\\source\\repos\\presence\\data\\obj\\",
|
||||||
"projectStyle": "PackageReference",
|
"projectStyle": "PackageReference",
|
||||||
"fallbackFolders": [
|
"fallbackFolders": [
|
||||||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"version": 2,
|
"version": 2,
|
||||||
"dgSpecHash": "dBPobGZbW4jKftpopDdOdvwpbzROWoiPzYBMGL/hXvUgdi/u/sEl0RkoQlrjuHoJDOWHTVpRo8RBVk4zjt8Z3g==",
|
"dgSpecHash": "dq+xJQNSo82BcvI1YOEsRM5SyN3J419X1oAn1yZywg6ptvxskzy0YvsVYIchdWZwskiwWAGbewHiRF0FFD64Gg==",
|
||||||
"success": true,
|
"success": true,
|
||||||
"projectFilePath": "C:\\Users\\class_student\\Source\\Repos\\presence\\data\\data.csproj",
|
"projectFilePath": "C:\\Users\\class_student\\source\\repos\\presence\\data\\data.csproj",
|
||||||
"expectedPackageFiles": [
|
"expectedPackageFiles": [
|
||||||
"C:\\Users\\class_student\\.nuget\\packages\\humanizer.core\\2.14.1\\humanizer.core.2.14.1.nupkg.sha512",
|
"C:\\Users\\class_student\\.nuget\\packages\\humanizer.core\\2.14.1\\humanizer.core.2.14.1.nupkg.sha512",
|
||||||
"C:\\Users\\class_student\\.nuget\\packages\\microsoft.bcl.asyncinterfaces\\6.0.0\\microsoft.bcl.asyncinterfaces.6.0.0.nupkg.sha512",
|
"C:\\Users\\class_student\\.nuget\\packages\\microsoft.bcl.asyncinterfaces\\6.0.0\\microsoft.bcl.asyncinterfaces.6.0.0.nupkg.sha512",
|
||||||
|
@ -6,7 +6,7 @@ using System.Threading.Tasks;
|
|||||||
|
|
||||||
namespace domain.Models
|
namespace domain.Models
|
||||||
{
|
{
|
||||||
public class GroupWithUsersDto
|
public class GroupWithStudentsDto
|
||||||
{
|
{
|
||||||
public string GroupName { get; set; }
|
public string GroupName { get; set; }
|
||||||
public List<string> Students { get; set; }
|
public List<string> Students { get; set; }
|
@ -63,7 +63,7 @@ namespace domain.UseCase
|
|||||||
? _repositoryGroupImpl.GetAllGroup().Max(g => g.Id) + 1
|
? _repositoryGroupImpl.GetAllGroup().Max(g => g.Id) + 1
|
||||||
: 1;
|
: 1;
|
||||||
|
|
||||||
GroupLocalEntity newGroup = new GroupLocalEntity
|
GroupDao newGroup = new GroupDao
|
||||||
{
|
{
|
||||||
Id = newId,
|
Id = newId,
|
||||||
Name = groupName
|
Name = groupName
|
||||||
|
56
domain/UseCase/UseCaseAPI.cs
Normal file
56
domain/UseCase/UseCaseAPI.cs
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
using data.RemoteData.RemoteDataBase.DAO;
|
||||||
|
using data.Repository;
|
||||||
|
using domain.Models;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace domain.UseCase
|
||||||
|
{
|
||||||
|
public class UseCaseAPI
|
||||||
|
{
|
||||||
|
public readonly IUserRepository _userRepository;
|
||||||
|
public readonly IPresenceRepository _presenceRepository;
|
||||||
|
private readonly IGroupRepository _groupRepository;
|
||||||
|
|
||||||
|
public UseCaseAPI(IUserRepository userRepository, IPresenceRepository presenceRepository, IGroupRepository groupRepository)
|
||||||
|
{
|
||||||
|
_userRepository = userRepository;
|
||||||
|
_presenceRepository = presenceRepository;
|
||||||
|
_groupRepository = groupRepository;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void AddGroupWithStudents(GroupWithStudentsDto groupDto)
|
||||||
|
{
|
||||||
|
if (string.IsNullOrWhiteSpace(groupDto.GroupName))
|
||||||
|
throw new ArgumentException("Название группы не может быть пустым.");
|
||||||
|
|
||||||
|
// Создаем группу
|
||||||
|
var newGroup = new GroupDao
|
||||||
|
{
|
||||||
|
Name = groupDto.GroupName
|
||||||
|
};
|
||||||
|
|
||||||
|
// Сохраняем группу и получаем ее ID
|
||||||
|
int groupId = _groupRepository.AddGroup(newGroup);
|
||||||
|
|
||||||
|
// Если есть пользователи, добавляем их
|
||||||
|
foreach (var studentFio in groupDto.Students)
|
||||||
|
{
|
||||||
|
var user = new UserDao
|
||||||
|
{
|
||||||
|
FIO = studentFio,
|
||||||
|
GroupID = groupId,
|
||||||
|
Guid = Guid.NewGuid() // Генерация нового GUID
|
||||||
|
};
|
||||||
|
_userRepository.AddUser(user);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -181,6 +181,12 @@ namespace domain.UseCase
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void ClearAllPresence()
|
||||||
|
{
|
||||||
|
_presenceRepository.ClearAllPresence();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -44,7 +44,7 @@ namespace domain.UseCase
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public User UpdateUser(User user)
|
public User UpdateUser(User user)
|
||||||
{
|
{
|
||||||
UserLocalEnity userLocalEnity = new UserLocalEnity
|
UserLocalEnity userLocalEnity = new UserLocalEnity
|
||||||
@ -80,7 +80,7 @@ namespace domain.UseCase
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public User FindUserByGuid(Guid userGuid)
|
public User FindUserByGuid(Guid userGuid)
|
||||||
{
|
{
|
||||||
var user = _repositoryUserImpl.GetAllUsers
|
var user = _repositoryUserImpl.GetAllUsers
|
||||||
@ -110,6 +110,9 @@ namespace domain.UseCase
|
|||||||
{
|
{
|
||||||
return _repositoryUserImpl.GetUserInfo(userGuid);
|
return _repositoryUserImpl.GetUserInfo(userGuid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -14,7 +14,7 @@ using System.Reflection;
|
|||||||
[assembly: System.Reflection.AssemblyCompanyAttribute("domain")]
|
[assembly: System.Reflection.AssemblyCompanyAttribute("domain")]
|
||||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+839362e7d0b5dfb5bcc210987efb21e47bd4ac2f")]
|
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+6384379808b7c29803411ab478a3e004c268439d")]
|
||||||
[assembly: System.Reflection.AssemblyProductAttribute("domain")]
|
[assembly: System.Reflection.AssemblyProductAttribute("domain")]
|
||||||
[assembly: System.Reflection.AssemblyTitleAttribute("domain")]
|
[assembly: System.Reflection.AssemblyTitleAttribute("domain")]
|
||||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||||
|
@ -1 +1 @@
|
|||||||
d600c8be21c77e7a8016045fd7b23df7c522f9ffb1c956a2ec504417ddef5e8d
|
053c7164e1acb1954785d4556d11bff5bd69f90727fcfd458ecff8e68f9fea72
|
||||||
|
@ -8,6 +8,6 @@ build_property.PlatformNeutralAssembly =
|
|||||||
build_property.EnforceExtendedAnalyzerRules =
|
build_property.EnforceExtendedAnalyzerRules =
|
||||||
build_property._SupportedPlatformList = Linux,macOS,Windows
|
build_property._SupportedPlatformList = Linux,macOS,Windows
|
||||||
build_property.RootNamespace = domain
|
build_property.RootNamespace = domain
|
||||||
build_property.ProjectDir = C:\Users\class_student\Source\Repos\presence\domain\
|
build_property.ProjectDir = C:\Users\class_student\source\repos\presence\domain\
|
||||||
build_property.EnableComHosting =
|
build_property.EnableComHosting =
|
||||||
build_property.EnableGeneratedComInterfaceComImportInterop =
|
build_property.EnableGeneratedComInterfaceComImportInterop =
|
||||||
|
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
|||||||
25ffdbef0fe18e9f0b7cdfa9979510573163885468d7e3c18828a7f8ac0111c7
|
1607375bb5d07fa3a7815d46071156e85b848ca356e3d0ffd450f4cdb5a8879c
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,17 +1,17 @@
|
|||||||
{
|
{
|
||||||
"format": 1,
|
"format": 1,
|
||||||
"restore": {
|
"restore": {
|
||||||
"C:\\Users\\class_student\\Source\\Repos\\presence\\domain\\domain.csproj": {}
|
"C:\\Users\\class_student\\source\\repos\\presence\\domain\\domain.csproj": {}
|
||||||
},
|
},
|
||||||
"projects": {
|
"projects": {
|
||||||
"C:\\Users\\class_student\\Source\\Repos\\presence\\data\\data.csproj": {
|
"C:\\Users\\class_student\\source\\repos\\presence\\data\\data.csproj": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "C:\\Users\\class_student\\Source\\Repos\\presence\\data\\data.csproj",
|
"projectUniqueName": "C:\\Users\\class_student\\source\\repos\\presence\\data\\data.csproj",
|
||||||
"projectName": "data",
|
"projectName": "data",
|
||||||
"projectPath": "C:\\Users\\class_student\\Source\\Repos\\presence\\data\\data.csproj",
|
"projectPath": "C:\\Users\\class_student\\source\\repos\\presence\\data\\data.csproj",
|
||||||
"packagesPath": "C:\\Users\\class_student\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\class_student\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\class_student\\Source\\Repos\\presence\\data\\obj\\",
|
"outputPath": "C:\\Users\\class_student\\source\\repos\\presence\\data\\obj\\",
|
||||||
"projectStyle": "PackageReference",
|
"projectStyle": "PackageReference",
|
||||||
"fallbackFolders": [
|
"fallbackFolders": [
|
||||||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
||||||
@ -84,14 +84,14 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"C:\\Users\\class_student\\Source\\Repos\\presence\\domain\\domain.csproj": {
|
"C:\\Users\\class_student\\source\\repos\\presence\\domain\\domain.csproj": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "C:\\Users\\class_student\\Source\\Repos\\presence\\domain\\domain.csproj",
|
"projectUniqueName": "C:\\Users\\class_student\\source\\repos\\presence\\domain\\domain.csproj",
|
||||||
"projectName": "domain",
|
"projectName": "domain",
|
||||||
"projectPath": "C:\\Users\\class_student\\Source\\Repos\\presence\\domain\\domain.csproj",
|
"projectPath": "C:\\Users\\class_student\\source\\repos\\presence\\domain\\domain.csproj",
|
||||||
"packagesPath": "C:\\Users\\class_student\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\class_student\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\class_student\\Source\\Repos\\presence\\domain\\obj\\",
|
"outputPath": "C:\\Users\\class_student\\source\\repos\\presence\\domain\\obj\\",
|
||||||
"projectStyle": "PackageReference",
|
"projectStyle": "PackageReference",
|
||||||
"fallbackFolders": [
|
"fallbackFolders": [
|
||||||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
||||||
@ -112,8 +112,8 @@
|
|||||||
"net8.0": {
|
"net8.0": {
|
||||||
"targetAlias": "net8.0",
|
"targetAlias": "net8.0",
|
||||||
"projectReferences": {
|
"projectReferences": {
|
||||||
"C:\\Users\\class_student\\Source\\Repos\\presence\\data\\data.csproj": {
|
"C:\\Users\\class_student\\source\\repos\\presence\\data\\data.csproj": {
|
||||||
"projectPath": "C:\\Users\\class_student\\Source\\Repos\\presence\\data\\data.csproj"
|
"projectPath": "C:\\Users\\class_student\\source\\repos\\presence\\data\\data.csproj"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1025,11 +1025,11 @@
|
|||||||
"project": {
|
"project": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "C:\\Users\\class_student\\Source\\Repos\\presence\\domain\\domain.csproj",
|
"projectUniqueName": "C:\\Users\\class_student\\source\\repos\\presence\\domain\\domain.csproj",
|
||||||
"projectName": "domain",
|
"projectName": "domain",
|
||||||
"projectPath": "C:\\Users\\class_student\\Source\\Repos\\presence\\domain\\domain.csproj",
|
"projectPath": "C:\\Users\\class_student\\source\\repos\\presence\\domain\\domain.csproj",
|
||||||
"packagesPath": "C:\\Users\\class_student\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\class_student\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\class_student\\Source\\Repos\\presence\\domain\\obj\\",
|
"outputPath": "C:\\Users\\class_student\\source\\repos\\presence\\domain\\obj\\",
|
||||||
"projectStyle": "PackageReference",
|
"projectStyle": "PackageReference",
|
||||||
"fallbackFolders": [
|
"fallbackFolders": [
|
||||||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
||||||
@ -1050,8 +1050,8 @@
|
|||||||
"net8.0": {
|
"net8.0": {
|
||||||
"targetAlias": "net8.0",
|
"targetAlias": "net8.0",
|
||||||
"projectReferences": {
|
"projectReferences": {
|
||||||
"C:\\Users\\class_student\\Source\\Repos\\presence\\data\\data.csproj": {
|
"C:\\Users\\class_student\\source\\repos\\presence\\data\\data.csproj": {
|
||||||
"projectPath": "C:\\Users\\class_student\\Source\\Repos\\presence\\data\\data.csproj"
|
"projectPath": "C:\\Users\\class_student\\source\\repos\\presence\\data\\data.csproj"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"version": 2,
|
"version": 2,
|
||||||
"dgSpecHash": "huTb6uPnY4Oy6459ePz3VJW91KIPhP3IHAaAETusVV7WDseLI/x2QkHrEeLo/1s2QMdcVBzKbOVfAT7f8Vi3Cw==",
|
"dgSpecHash": "lJTJ14wBwjXFnaVaxoabnlDogMX3Sp0lQVlqyaedGyWhAz5YJhifXah8drXyM7t4sf35FH72dxhiyf+6Qi+IXA==",
|
||||||
"success": true,
|
"success": true,
|
||||||
"projectFilePath": "C:\\Users\\class_student\\Source\\Repos\\presence\\domain\\domain.csproj",
|
"projectFilePath": "C:\\Users\\class_student\\source\\repos\\presence\\domain\\domain.csproj",
|
||||||
"expectedPackageFiles": [
|
"expectedPackageFiles": [
|
||||||
"C:\\Users\\class_student\\.nuget\\packages\\closedxml\\0.104.1\\closedxml.0.104.1.nupkg.sha512",
|
"C:\\Users\\class_student\\.nuget\\packages\\closedxml\\0.104.1\\closedxml.0.104.1.nupkg.sha512",
|
||||||
"C:\\Users\\class_student\\.nuget\\packages\\closedxml.parser\\1.2.0\\closedxml.parser.1.2.0.nupkg.sha512",
|
"C:\\Users\\class_student\\.nuget\\packages\\closedxml.parser\\1.2.0\\closedxml.parser.1.2.0.nupkg.sha512",
|
||||||
|
@ -13,12 +13,14 @@ public class AdminPanelController : ControllerBase
|
|||||||
private readonly GroupUseCase _groupUseCase;
|
private readonly GroupUseCase _groupUseCase;
|
||||||
private readonly UserUseCase _userUseCase;
|
private readonly UserUseCase _userUseCase;
|
||||||
private readonly UseCaseGeneratePresence _presenceUseCase;
|
private readonly UseCaseGeneratePresence _presenceUseCase;
|
||||||
|
private readonly UseCaseAPI _useCaseAPI;
|
||||||
|
|
||||||
public AdminPanelController(GroupUseCase groupUseCase, UserUseCase userUseCase, UseCaseGeneratePresence presenceUseCase)
|
public AdminPanelController(GroupUseCase groupUseCase, UserUseCase userUseCase, UseCaseGeneratePresence presenceUseCase, UseCaseAPI useCaseAPI)
|
||||||
{
|
{
|
||||||
_groupUseCase = groupUseCase;
|
_groupUseCase = groupUseCase;
|
||||||
_userUseCase = userUseCase;
|
_userUseCase = userUseCase;
|
||||||
_presenceUseCase = presenceUseCase;
|
_presenceUseCase = presenceUseCase;
|
||||||
|
_useCaseAPI = useCaseAPI;
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpGet("student/{userGuid}")]
|
[HttpGet("student/{userGuid}")]
|
||||||
@ -47,12 +49,12 @@ public class AdminPanelController : ControllerBase
|
|||||||
}
|
}
|
||||||
|
|
||||||
[HttpGet("groups")]
|
[HttpGet("groups")]
|
||||||
public ActionResult<List<GroupWithUsersDto>> GetAllGroupsWithUsers()
|
public ActionResult<List<GroupWithStudentsDto>> GetAllGroupsWithUsers()
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// Получаем группы с пользователями
|
// Получаем группы с пользователями
|
||||||
var groupsWithUsers = _groupUseCase.GetAllGroupWithStident().Select(group => new GroupWithUsersDto
|
var groupsWithUsers = _groupUseCase.GetAllGroupWithStident().Select(group => new GroupWithStudentsDto
|
||||||
{
|
{
|
||||||
GroupName = group.Name, // Название группы
|
GroupName = group.Name, // Название группы
|
||||||
Students = group.Users.Select(u => u.FIO).ToList() // Список студентов
|
Students = group.Users.Select(u => u.FIO).ToList() // Список студентов
|
||||||
@ -67,4 +69,60 @@ public class AdminPanelController : ControllerBase
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[HttpDelete("presence/clear")]
|
||||||
|
public ActionResult ClearPresence()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
_presenceUseCase.ClearAllPresence();
|
||||||
|
return Ok(new { message = "Все записи присутствия успешно удалены." });
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
return BadRequest(new { message = ex.Message });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[HttpDelete("groups/{groupId}")]
|
||||||
|
public ActionResult RemoveGroupById(int groupId)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
_groupUseCase.RemoveGroupById(groupId);
|
||||||
|
return Ok(new { message = "Группа успешно удалена." });
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
return BadRequest(new { message = ex.Message });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[HttpDelete("users/{userGuid}")]
|
||||||
|
public ActionResult RemoveUserByGuid(Guid userGuid)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
_userUseCase.RemoveUserByGuid(userGuid);
|
||||||
|
return Ok(new { message = "Пользователь удален." });
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
return BadRequest (new { message = ex.Message });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[HttpPost("groups/add")]
|
||||||
|
public IActionResult AddGroupWithStudents([FromBody] GroupWithStudentsDto groupDto)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
_useCaseAPI.AddGroupWithStudents(groupDto);
|
||||||
|
return Ok(new { message = "Группа успешно добавлена." });
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
return BadRequest(new { message = ex.Message });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -7,6 +7,7 @@ builder.Services.AddControllers();
|
|||||||
builder.Services.AddDbContext<RemoteDatabaseContext>();
|
builder.Services.AddDbContext<RemoteDatabaseContext>();
|
||||||
|
|
||||||
// Регистрируем зависимости для репозиториев
|
// Регистрируем зависимости для репозиториев
|
||||||
|
builder.Services.ConfigurateAdminPanel();
|
||||||
builder.Services.ConfigurateRepositories();
|
builder.Services.ConfigurateRepositories();
|
||||||
|
|
||||||
// Регистрируем зависимости для группы, пользователей и посещаемости
|
// Регистрируем зависимости для группы, пользователей и посещаемости
|
||||||
|
@ -33,7 +33,8 @@ public static class ServiceExtensions
|
|||||||
.AddScoped<IPresenceRepository, SQLPresenceRepositoryImpl>()
|
.AddScoped<IPresenceRepository, SQLPresenceRepositoryImpl>()
|
||||||
.AddScoped<GroupUseCase>()
|
.AddScoped<GroupUseCase>()
|
||||||
.AddScoped<UserUseCase>()
|
.AddScoped<UserUseCase>()
|
||||||
.AddScoped<UseCaseGeneratePresence>();
|
.AddScoped<UseCaseGeneratePresence>()
|
||||||
|
.AddScoped<UseCaseAPI>();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void ConfigurateRepositories(this IServiceCollection services)
|
public static void ConfigurateRepositories(this IServiceCollection services)
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -14,7 +14,7 @@ using System.Reflection;
|
|||||||
[assembly: System.Reflection.AssemblyCompanyAttribute("presence_api")]
|
[assembly: System.Reflection.AssemblyCompanyAttribute("presence_api")]
|
||||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+839362e7d0b5dfb5bcc210987efb21e47bd4ac2f")]
|
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+6384379808b7c29803411ab478a3e004c268439d")]
|
||||||
[assembly: System.Reflection.AssemblyProductAttribute("presence_api")]
|
[assembly: System.Reflection.AssemblyProductAttribute("presence_api")]
|
||||||
[assembly: System.Reflection.AssemblyTitleAttribute("presence_api")]
|
[assembly: System.Reflection.AssemblyTitleAttribute("presence_api")]
|
||||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||||
|
@ -1 +1 @@
|
|||||||
58dd6509641082616d79aa48f9065490a199f2bf5e7bbe8dca45bc53fd028443
|
e11df849e630c0f8e1608bee74a76508a888dd79c318da22260fa666dc054d46
|
||||||
|
@ -9,11 +9,11 @@ build_property.EnforceExtendedAnalyzerRules =
|
|||||||
build_property._SupportedPlatformList = Linux,macOS,Windows
|
build_property._SupportedPlatformList = Linux,macOS,Windows
|
||||||
build_property.RootNamespace = presence_api
|
build_property.RootNamespace = presence_api
|
||||||
build_property.RootNamespace = presence_api
|
build_property.RootNamespace = presence_api
|
||||||
build_property.ProjectDir = C:\Users\class_student\Source\Repos\presence\presence_api\
|
build_property.ProjectDir = C:\Users\class_student\source\repos\presence\presence_api\
|
||||||
build_property.EnableComHosting =
|
build_property.EnableComHosting =
|
||||||
build_property.EnableGeneratedComInterfaceComImportInterop =
|
build_property.EnableGeneratedComInterfaceComImportInterop =
|
||||||
build_property.RazorLangVersion = 8.0
|
build_property.RazorLangVersion = 8.0
|
||||||
build_property.SupportLocalizedComponentNames =
|
build_property.SupportLocalizedComponentNames =
|
||||||
build_property.GenerateRazorMetadataSourceChecksumAttributes =
|
build_property.GenerateRazorMetadataSourceChecksumAttributes =
|
||||||
build_property.MSBuildProjectDirectory = C:\Users\class_student\Source\Repos\presence\presence_api
|
build_property.MSBuildProjectDirectory = C:\Users\class_student\source\repos\presence\presence_api
|
||||||
build_property._RazorSourceGeneratorDebug =
|
build_property._RazorSourceGeneratorDebug =
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
|||||||
6ecd3068866734fc03c93de85f2d75c0ad3492267871c9c6bbb55afbef02fa85
|
3a2a601248dd535ef3741f4ebc6335411ed0f699580eaaa48a0fe3c4700ec5ee
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,17 +1,17 @@
|
|||||||
{
|
{
|
||||||
"format": 1,
|
"format": 1,
|
||||||
"restore": {
|
"restore": {
|
||||||
"C:\\Users\\class_student\\Source\\Repos\\presence\\presence_api\\presence_api.csproj": {}
|
"C:\\Users\\class_student\\source\\repos\\presence\\presence_api\\presence_api.csproj": {}
|
||||||
},
|
},
|
||||||
"projects": {
|
"projects": {
|
||||||
"C:\\Users\\class_student\\Source\\Repos\\presence\\data\\data.csproj": {
|
"C:\\Users\\class_student\\source\\repos\\presence\\data\\data.csproj": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "C:\\Users\\class_student\\Source\\Repos\\presence\\data\\data.csproj",
|
"projectUniqueName": "C:\\Users\\class_student\\source\\repos\\presence\\data\\data.csproj",
|
||||||
"projectName": "data",
|
"projectName": "data",
|
||||||
"projectPath": "C:\\Users\\class_student\\Source\\Repos\\presence\\data\\data.csproj",
|
"projectPath": "C:\\Users\\class_student\\source\\repos\\presence\\data\\data.csproj",
|
||||||
"packagesPath": "C:\\Users\\class_student\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\class_student\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\class_student\\Source\\Repos\\presence\\data\\obj\\",
|
"outputPath": "C:\\Users\\class_student\\source\\repos\\presence\\data\\obj\\",
|
||||||
"projectStyle": "PackageReference",
|
"projectStyle": "PackageReference",
|
||||||
"fallbackFolders": [
|
"fallbackFolders": [
|
||||||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
||||||
@ -84,14 +84,14 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"C:\\Users\\class_student\\Source\\Repos\\presence\\domain\\domain.csproj": {
|
"C:\\Users\\class_student\\source\\repos\\presence\\domain\\domain.csproj": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "C:\\Users\\class_student\\Source\\Repos\\presence\\domain\\domain.csproj",
|
"projectUniqueName": "C:\\Users\\class_student\\source\\repos\\presence\\domain\\domain.csproj",
|
||||||
"projectName": "domain",
|
"projectName": "domain",
|
||||||
"projectPath": "C:\\Users\\class_student\\Source\\Repos\\presence\\domain\\domain.csproj",
|
"projectPath": "C:\\Users\\class_student\\source\\repos\\presence\\domain\\domain.csproj",
|
||||||
"packagesPath": "C:\\Users\\class_student\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\class_student\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\class_student\\Source\\Repos\\presence\\domain\\obj\\",
|
"outputPath": "C:\\Users\\class_student\\source\\repos\\presence\\domain\\obj\\",
|
||||||
"projectStyle": "PackageReference",
|
"projectStyle": "PackageReference",
|
||||||
"fallbackFolders": [
|
"fallbackFolders": [
|
||||||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
||||||
@ -112,8 +112,8 @@
|
|||||||
"net8.0": {
|
"net8.0": {
|
||||||
"targetAlias": "net8.0",
|
"targetAlias": "net8.0",
|
||||||
"projectReferences": {
|
"projectReferences": {
|
||||||
"C:\\Users\\class_student\\Source\\Repos\\presence\\data\\data.csproj": {
|
"C:\\Users\\class_student\\source\\repos\\presence\\data\\data.csproj": {
|
||||||
"projectPath": "C:\\Users\\class_student\\Source\\Repos\\presence\\data\\data.csproj"
|
"projectPath": "C:\\Users\\class_student\\source\\repos\\presence\\data\\data.csproj"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -158,14 +158,14 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"C:\\Users\\class_student\\Source\\Repos\\presence\\presence_api\\presence_api.csproj": {
|
"C:\\Users\\class_student\\source\\repos\\presence\\presence_api\\presence_api.csproj": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "C:\\Users\\class_student\\Source\\Repos\\presence\\presence_api\\presence_api.csproj",
|
"projectUniqueName": "C:\\Users\\class_student\\source\\repos\\presence\\presence_api\\presence_api.csproj",
|
||||||
"projectName": "presence_api",
|
"projectName": "presence_api",
|
||||||
"projectPath": "C:\\Users\\class_student\\Source\\Repos\\presence\\presence_api\\presence_api.csproj",
|
"projectPath": "C:\\Users\\class_student\\source\\repos\\presence\\presence_api\\presence_api.csproj",
|
||||||
"packagesPath": "C:\\Users\\class_student\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\class_student\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\class_student\\Source\\Repos\\presence\\presence_api\\obj\\",
|
"outputPath": "C:\\Users\\class_student\\source\\repos\\presence\\presence_api\\obj\\",
|
||||||
"projectStyle": "PackageReference",
|
"projectStyle": "PackageReference",
|
||||||
"fallbackFolders": [
|
"fallbackFolders": [
|
||||||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
||||||
@ -186,8 +186,8 @@
|
|||||||
"net8.0": {
|
"net8.0": {
|
||||||
"targetAlias": "net8.0",
|
"targetAlias": "net8.0",
|
||||||
"projectReferences": {
|
"projectReferences": {
|
||||||
"C:\\Users\\class_student\\Source\\Repos\\presence\\domain\\domain.csproj": {
|
"C:\\Users\\class_student\\source\\repos\\presence\\domain\\domain.csproj": {
|
||||||
"projectPath": "C:\\Users\\class_student\\Source\\Repos\\presence\\domain\\domain.csproj"
|
"projectPath": "C:\\Users\\class_student\\source\\repos\\presence\\domain\\domain.csproj"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1492,11 +1492,11 @@
|
|||||||
"project": {
|
"project": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"restore": {
|
"restore": {
|
||||||
"projectUniqueName": "C:\\Users\\class_student\\Source\\Repos\\presence\\presence_api\\presence_api.csproj",
|
"projectUniqueName": "C:\\Users\\class_student\\source\\repos\\presence\\presence_api\\presence_api.csproj",
|
||||||
"projectName": "presence_api",
|
"projectName": "presence_api",
|
||||||
"projectPath": "C:\\Users\\class_student\\Source\\Repos\\presence\\presence_api\\presence_api.csproj",
|
"projectPath": "C:\\Users\\class_student\\source\\repos\\presence\\presence_api\\presence_api.csproj",
|
||||||
"packagesPath": "C:\\Users\\class_student\\.nuget\\packages\\",
|
"packagesPath": "C:\\Users\\class_student\\.nuget\\packages\\",
|
||||||
"outputPath": "C:\\Users\\class_student\\Source\\Repos\\presence\\presence_api\\obj\\",
|
"outputPath": "C:\\Users\\class_student\\source\\repos\\presence\\presence_api\\obj\\",
|
||||||
"projectStyle": "PackageReference",
|
"projectStyle": "PackageReference",
|
||||||
"fallbackFolders": [
|
"fallbackFolders": [
|
||||||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
||||||
@ -1517,8 +1517,8 @@
|
|||||||
"net8.0": {
|
"net8.0": {
|
||||||
"targetAlias": "net8.0",
|
"targetAlias": "net8.0",
|
||||||
"projectReferences": {
|
"projectReferences": {
|
||||||
"C:\\Users\\class_student\\Source\\Repos\\presence\\domain\\domain.csproj": {
|
"C:\\Users\\class_student\\source\\repos\\presence\\domain\\domain.csproj": {
|
||||||
"projectPath": "C:\\Users\\class_student\\Source\\Repos\\presence\\domain\\domain.csproj"
|
"projectPath": "C:\\Users\\class_student\\source\\repos\\presence\\domain\\domain.csproj"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"version": 2,
|
"version": 2,
|
||||||
"dgSpecHash": "Wpv0GgUqF9c3N+U/qXq9dDp6NW5DUXDhQiVLWU04sXnDJSo9hDp27+WDSWo9VMpqc8dm6ZwhSi9it6pDrxY7Cw==",
|
"dgSpecHash": "ikXvASXc/Rkexe7ERiMNgD/DommsZr1j88s5EJUieLBAudeu/FD9X4LPlK0fHIJzxjo0vjxrOMWzCnQeUxzzbA==",
|
||||||
"success": true,
|
"success": true,
|
||||||
"projectFilePath": "C:\\Users\\class_student\\Source\\Repos\\presence\\presence_api\\presence_api.csproj",
|
"projectFilePath": "C:\\Users\\class_student\\source\\repos\\presence\\presence_api\\presence_api.csproj",
|
||||||
"expectedPackageFiles": [
|
"expectedPackageFiles": [
|
||||||
"C:\\Users\\class_student\\.nuget\\packages\\closedxml\\0.104.1\\closedxml.0.104.1.nupkg.sha512",
|
"C:\\Users\\class_student\\.nuget\\packages\\closedxml\\0.104.1\\closedxml.0.104.1.nupkg.sha512",
|
||||||
"C:\\Users\\class_student\\.nuget\\packages\\closedxml.parser\\1.2.0\\closedxml.parser.1.2.0.nupkg.sha512",
|
"C:\\Users\\class_student\\.nuget\\packages\\closedxml.parser\\1.2.0\\closedxml.parser.1.2.0.nupkg.sha512",
|
||||||
|
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user