diff --git a/Presence.Desktop/App.axaml b/Presence.Desktop/App.axaml
index d3f2dbe..fb6e015 100644
--- a/Presence.Desktop/App.axaml
+++ b/Presence.Desktop/App.axaml
@@ -5,6 +5,7 @@
-
-
+
+
+
\ No newline at end of file
diff --git a/Presence.Desktop/Presence.Desktop.csproj b/Presence.Desktop/Presence.Desktop.csproj
index ccd94d0..8e94e3c 100644
--- a/Presence.Desktop/Presence.Desktop.csproj
+++ b/Presence.Desktop/Presence.Desktop.csproj
@@ -15,6 +15,7 @@
+
diff --git a/Presence.Desktop/ViewModels/PresenceViewModel.cs b/Presence.Desktop/ViewModels/PresenceViewModel.cs
index c4a8bf8..ce76ecf 100644
--- a/Presence.Desktop/ViewModels/PresenceViewModel.cs
+++ b/Presence.Desktop/ViewModels/PresenceViewModel.cs
@@ -8,6 +8,7 @@ using ReactiveUI;
using System;
using System.Collections.ObjectModel;
using System.Globalization;
+using System.Linq;
using System.Reactive;
namespace Presence.Desktop.ViewModels
@@ -22,6 +23,12 @@ namespace Presence.Desktop.ViewModels
public ObservableCollection AttendanceRecords { get; set; } = new();
public ObservableCollection Groups { get; set; } = new();
+ private ObservableCollection _selectedItems = new();
+ public ObservableCollection SelectedItems
+ {
+ get => _selectedItems;
+ set => this.RaiseAndSetIfChanged(ref _selectedItems, value);
+ }
private GroupPresenter? _selectedGroup;
public GroupPresenter? SelectedGroup
@@ -46,6 +53,7 @@ namespace Presence.Desktop.ViewModels
}
public ReactiveCommand NavigateBackCommand { get; }
+ public ReactiveCommand DeleteSelectedPresenceCommand { get; }
public PresenceViewModel(GroupUseCase groupUseCase, PresenceUseCase presenceUseCase)
{
@@ -55,12 +63,9 @@ namespace Presence.Desktop.ViewModels
NavigateBackCommand = ReactiveCommand.Create(() => { });
+ DeleteSelectedPresenceCommand = ReactiveCommand.Create(DeleteSelectedItems);
- this.WhenAnyValue(vm => vm.SelectedGroup)
- .Subscribe(_ =>
- {
- LoadGroups();
- });
+ LoadGroups();
}
private void LoadGroups()
@@ -80,7 +85,7 @@ namespace Presence.Desktop.ViewModels
private void FilterAttendanceRecords()
{
- if (SelectedGroup == null)
+ if (SelectedGroup == null || SelectedDate == null)
{
AttendanceRecords.Clear();
return;
@@ -106,6 +111,21 @@ namespace Presence.Desktop.ViewModels
}
});
}
+
+ // Логирование для отладки
+ Console.WriteLine($"Загружено записей посещаемости: {AttendanceRecords.Count}");
+ }
+
+ private void DeleteSelectedItems()
+ {
+ if (SelectedItems.Any())
+ {
+ foreach (var item in SelectedItems.ToList())
+ {
+ _presenceUseCase.DeletePresenceByClassNumberAndDateAndUserId(item.ClassNumber, item.Date, item.User.Id); // Удаляем из базы данных
+ AttendanceRecords.Remove(item); // Удаляем из коллекции
+ }
+ }
}
diff --git a/Presence.Desktop/Views/PresenceView.axaml b/Presence.Desktop/Views/PresenceView.axaml
index 7c47916..5da2718 100644
--- a/Presence.Desktop/Views/PresenceView.axaml
+++ b/Presence.Desktop/Views/PresenceView.axaml
@@ -7,8 +7,8 @@
x:Class="Presence.Desktop.Views.PresenceView"
x:DataType="vm:PresenceViewModel">
-
-
+
+
@@ -22,17 +22,18 @@
+
-
+
-
+
-
-
-
-
+
+
+
\ No newline at end of file
diff --git a/Presence.Desktop/Views/PresenceView.axaml.cs b/Presence.Desktop/Views/PresenceView.axaml.cs
index ad4e1fe..de28a96 100644
--- a/Presence.Desktop/Views/PresenceView.axaml.cs
+++ b/Presence.Desktop/Views/PresenceView.axaml.cs
@@ -1,7 +1,9 @@
+using System.Linq;
using Avalonia;
using Avalonia.Controls;
using Avalonia.Markup.Xaml;
using Avalonia.ReactiveUI;
+using Presence.Desktop.Models;
using Presence.Desktop.ViewModels;
using ReactiveUI;
@@ -13,4 +15,17 @@ public partial class PresenceView : ReactiveUserControl
{
this.WhenActivated(disposables => { });
AvaloniaXamlLoader.Load(this); }
+
+ private void OnDataGridSelectionChanged(object sender, SelectionChangedEventArgs e)
+ {
+ if (this.DataContext is PresenceViewModel viewModel)
+ {
+ // Обновляем выделенные элементы в ViewModel
+ viewModel.SelectedItems.Clear();
+ foreach (var item in e.AddedItems.OfType())
+ {
+ viewModel.SelectedItems.Add(item);
+ }
+ }
+ }
}
\ No newline at end of file
diff --git a/Presence.Desktop/bin/Debug/net8.0/Presence.Desktop.deps.json b/Presence.Desktop/bin/Debug/net8.0/Presence.Desktop.deps.json
index 245d810..50573b2 100644
--- a/Presence.Desktop/bin/Debug/net8.0/Presence.Desktop.deps.json
+++ b/Presence.Desktop/bin/Debug/net8.0/Presence.Desktop.deps.json
@@ -9,6 +9,7 @@
"Presence.Desktop/1.0.0": {
"dependencies": {
"Avalonia": "11.2.1",
+ "Avalonia.Controls.DataGrid": "11.2.1",
"Avalonia.Desktop": "11.2.1",
"Avalonia.Diagnostics": "11.2.1",
"Avalonia.Fonts.Inter": "11.2.1",
diff --git a/Presence.Desktop/bin/Debug/net8.0/Presence.Desktop.dll b/Presence.Desktop/bin/Debug/net8.0/Presence.Desktop.dll
index e37de2e..a254536 100644
Binary files a/Presence.Desktop/bin/Debug/net8.0/Presence.Desktop.dll and b/Presence.Desktop/bin/Debug/net8.0/Presence.Desktop.dll differ
diff --git a/Presence.Desktop/bin/Debug/net8.0/Presence.Desktop.pdb b/Presence.Desktop/bin/Debug/net8.0/Presence.Desktop.pdb
index ae2d5c1..e5f5c97 100644
Binary files a/Presence.Desktop/bin/Debug/net8.0/Presence.Desktop.pdb and b/Presence.Desktop/bin/Debug/net8.0/Presence.Desktop.pdb differ
diff --git a/Presence.Desktop/bin/Debug/net8.0/data.dll b/Presence.Desktop/bin/Debug/net8.0/data.dll
index a3c2baa..652b581 100644
Binary files a/Presence.Desktop/bin/Debug/net8.0/data.dll and b/Presence.Desktop/bin/Debug/net8.0/data.dll differ
diff --git a/Presence.Desktop/bin/Debug/net8.0/data.pdb b/Presence.Desktop/bin/Debug/net8.0/data.pdb
index d741cc5..4214da8 100644
Binary files a/Presence.Desktop/bin/Debug/net8.0/data.pdb and b/Presence.Desktop/bin/Debug/net8.0/data.pdb differ
diff --git a/Presence.Desktop/bin/Debug/net8.0/domain.dll b/Presence.Desktop/bin/Debug/net8.0/domain.dll
index b621fc1..5025c34 100644
Binary files a/Presence.Desktop/bin/Debug/net8.0/domain.dll and b/Presence.Desktop/bin/Debug/net8.0/domain.dll differ
diff --git a/Presence.Desktop/bin/Debug/net8.0/domain.pdb b/Presence.Desktop/bin/Debug/net8.0/domain.pdb
index 552b64e..d7f31ed 100644
Binary files a/Presence.Desktop/bin/Debug/net8.0/domain.pdb and b/Presence.Desktop/bin/Debug/net8.0/domain.pdb differ
diff --git a/Presence.Desktop/obj/Debug/net8.0/Avalonia/Presence.Desktop.dll b/Presence.Desktop/obj/Debug/net8.0/Avalonia/Presence.Desktop.dll
index e37de2e..a254536 100644
Binary files a/Presence.Desktop/obj/Debug/net8.0/Avalonia/Presence.Desktop.dll and b/Presence.Desktop/obj/Debug/net8.0/Avalonia/Presence.Desktop.dll differ
diff --git a/Presence.Desktop/obj/Debug/net8.0/Avalonia/Presence.Desktop.pdb b/Presence.Desktop/obj/Debug/net8.0/Avalonia/Presence.Desktop.pdb
index ae2d5c1..e5f5c97 100644
Binary files a/Presence.Desktop/obj/Debug/net8.0/Avalonia/Presence.Desktop.pdb and b/Presence.Desktop/obj/Debug/net8.0/Avalonia/Presence.Desktop.pdb differ
diff --git a/Presence.Desktop/obj/Debug/net8.0/Avalonia/Resources.Inputs.cache b/Presence.Desktop/obj/Debug/net8.0/Avalonia/Resources.Inputs.cache
index 9467a80..a1f99b6 100644
--- a/Presence.Desktop/obj/Debug/net8.0/Avalonia/Resources.Inputs.cache
+++ b/Presence.Desktop/obj/Debug/net8.0/Avalonia/Resources.Inputs.cache
@@ -1 +1 @@
-8ff83d2bcb3cec6472dc66a2a69c5cfafb8cbd5996d3bbe796f44278fe829520
+56ae5ef5211e31f34c72fa8790282155735812ceabb8c9c1129ad7d327241a91
diff --git a/Presence.Desktop/obj/Debug/net8.0/Avalonia/resources b/Presence.Desktop/obj/Debug/net8.0/Avalonia/resources
index c2db1a4..c39635b 100644
Binary files a/Presence.Desktop/obj/Debug/net8.0/Avalonia/resources and b/Presence.Desktop/obj/Debug/net8.0/Avalonia/resources differ
diff --git a/Presence.Desktop/obj/Debug/net8.0/Presence.Desktop.AssemblyInfo.cs b/Presence.Desktop/obj/Debug/net8.0/Presence.Desktop.AssemblyInfo.cs
index cf0c59e..f16634d 100644
--- a/Presence.Desktop/obj/Debug/net8.0/Presence.Desktop.AssemblyInfo.cs
+++ b/Presence.Desktop/obj/Debug/net8.0/Presence.Desktop.AssemblyInfo.cs
@@ -13,10 +13,10 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("Presence.Desktop")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
-[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+38cf16c345620460ae7f35458594b103cab78067")]
+[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+eadf72b51276624814f3e477c5bc69af93bf4792")]
[assembly: System.Reflection.AssemblyProductAttribute("Presence.Desktop")]
[assembly: System.Reflection.AssemblyTitleAttribute("Presence.Desktop")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
-// Создано классом WriteCodeFragment MSBuild.
+// Generated by the MSBuild WriteCodeFragment class.
diff --git a/Presence.Desktop/obj/Debug/net8.0/Presence.Desktop.AssemblyInfoInputs.cache b/Presence.Desktop/obj/Debug/net8.0/Presence.Desktop.AssemblyInfoInputs.cache
index 89c1373..a1083a6 100644
--- a/Presence.Desktop/obj/Debug/net8.0/Presence.Desktop.AssemblyInfoInputs.cache
+++ b/Presence.Desktop/obj/Debug/net8.0/Presence.Desktop.AssemblyInfoInputs.cache
@@ -1 +1 @@
-a55713119259355cce81a2db571720adcd3acb7bc2009903ebf5dba4fbc71e3d
+72b577a16b1150e5587b14ce010e799430b278d0d3ab4eb8c333f7fdbbed0371
diff --git a/Presence.Desktop/obj/Debug/net8.0/Presence.Desktop.assets.cache b/Presence.Desktop/obj/Debug/net8.0/Presence.Desktop.assets.cache
index 7ff5bd8..6a430f7 100644
Binary files a/Presence.Desktop/obj/Debug/net8.0/Presence.Desktop.assets.cache and b/Presence.Desktop/obj/Debug/net8.0/Presence.Desktop.assets.cache differ
diff --git a/Presence.Desktop/obj/Debug/net8.0/Presence.Desktop.csproj.AssemblyReference.cache b/Presence.Desktop/obj/Debug/net8.0/Presence.Desktop.csproj.AssemblyReference.cache
index bbe32ac..c2cd773 100644
Binary files a/Presence.Desktop/obj/Debug/net8.0/Presence.Desktop.csproj.AssemblyReference.cache and b/Presence.Desktop/obj/Debug/net8.0/Presence.Desktop.csproj.AssemblyReference.cache differ
diff --git a/Presence.Desktop/obj/Debug/net8.0/Presence.Desktop.dll b/Presence.Desktop/obj/Debug/net8.0/Presence.Desktop.dll
index ad4127c..ae44eba 100644
Binary files a/Presence.Desktop/obj/Debug/net8.0/Presence.Desktop.dll and b/Presence.Desktop/obj/Debug/net8.0/Presence.Desktop.dll differ
diff --git a/Presence.Desktop/obj/Debug/net8.0/Presence.Desktop.pdb b/Presence.Desktop/obj/Debug/net8.0/Presence.Desktop.pdb
index 45f6b87..e2483ee 100644
Binary files a/Presence.Desktop/obj/Debug/net8.0/Presence.Desktop.pdb and b/Presence.Desktop/obj/Debug/net8.0/Presence.Desktop.pdb differ
diff --git a/Presence.Desktop/obj/Debug/net8.0/ref/Presence.Desktop.dll b/Presence.Desktop/obj/Debug/net8.0/ref/Presence.Desktop.dll
index cf4a8f3..a879697 100644
Binary files a/Presence.Desktop/obj/Debug/net8.0/ref/Presence.Desktop.dll and b/Presence.Desktop/obj/Debug/net8.0/ref/Presence.Desktop.dll differ
diff --git a/Presence.Desktop/obj/Debug/net8.0/refint/Avalonia/Presence.Desktop.dll b/Presence.Desktop/obj/Debug/net8.0/refint/Avalonia/Presence.Desktop.dll
index cf4a8f3..a879697 100644
Binary files a/Presence.Desktop/obj/Debug/net8.0/refint/Avalonia/Presence.Desktop.dll and b/Presence.Desktop/obj/Debug/net8.0/refint/Avalonia/Presence.Desktop.dll differ
diff --git a/Presence.Desktop/obj/Debug/net8.0/refint/Presence.Desktop.dll b/Presence.Desktop/obj/Debug/net8.0/refint/Presence.Desktop.dll
index 477e085..62ed828 100644
Binary files a/Presence.Desktop/obj/Debug/net8.0/refint/Presence.Desktop.dll and b/Presence.Desktop/obj/Debug/net8.0/refint/Presence.Desktop.dll differ
diff --git a/Presence.Desktop/obj/Presence.Desktop.csproj.nuget.dgspec.json b/Presence.Desktop/obj/Presence.Desktop.csproj.nuget.dgspec.json
index 53d1d6d..7fa08e6 100644
--- a/Presence.Desktop/obj/Presence.Desktop.csproj.nuget.dgspec.json
+++ b/Presence.Desktop/obj/Presence.Desktop.csproj.nuget.dgspec.json
@@ -51,6 +51,10 @@
"target": "Package",
"version": "[11.2.1, )"
},
+ "Avalonia.Controls.DataGrid": {
+ "target": "Package",
+ "version": "[11.2.1, )"
+ },
"Avalonia.Desktop": {
"target": "Package",
"version": "[11.2.1, )"
diff --git a/Presence.Desktop/obj/project.assets.json b/Presence.Desktop/obj/project.assets.json
index 308a856..d7298a4 100644
--- a/Presence.Desktop/obj/project.assets.json
+++ b/Presence.Desktop/obj/project.assets.json
@@ -2473,6 +2473,7 @@
"projectFileDependencyGroups": {
"net8.0": [
"Avalonia >= 11.2.1",
+ "Avalonia.Controls.DataGrid >= 11.2.1",
"Avalonia.Desktop >= 11.2.1",
"Avalonia.Diagnostics >= 11.2.1",
"Avalonia.Fonts.Inter >= 11.2.1",
@@ -2531,6 +2532,10 @@
"target": "Package",
"version": "[11.2.1, )"
},
+ "Avalonia.Controls.DataGrid": {
+ "target": "Package",
+ "version": "[11.2.1, )"
+ },
"Avalonia.Desktop": {
"target": "Package",
"version": "[11.2.1, )"
diff --git a/Presence.Desktop/obj/project.nuget.cache b/Presence.Desktop/obj/project.nuget.cache
index 2eda1a4..badbb57 100644
--- a/Presence.Desktop/obj/project.nuget.cache
+++ b/Presence.Desktop/obj/project.nuget.cache
@@ -1,6 +1,6 @@
{
"version": 2,
- "dgSpecHash": "yZq6gfkM/18=",
+ "dgSpecHash": "bFYjHbhBv54=",
"success": true,
"projectFilePath": "/home/gara/csharp/BIGPROGECT/presence/Presence.Desktop/Presence.Desktop.csproj",
"expectedPackageFiles": [
diff --git a/console_ui/obj/Debug/net8.0/console_ui.AssemblyInfo.cs b/console_ui/obj/Debug/net8.0/console_ui.AssemblyInfo.cs
index afb5443..fd89127 100644
--- a/console_ui/obj/Debug/net8.0/console_ui.AssemblyInfo.cs
+++ b/console_ui/obj/Debug/net8.0/console_ui.AssemblyInfo.cs
@@ -13,7 +13,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("console_ui")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
-[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+38cf16c345620460ae7f35458594b103cab78067")]
+[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+eadf72b51276624814f3e477c5bc69af93bf4792")]
[assembly: System.Reflection.AssemblyProductAttribute("console_ui")]
[assembly: System.Reflection.AssemblyTitleAttribute("console_ui")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
diff --git a/console_ui/obj/Debug/net8.0/console_ui.AssemblyInfoInputs.cache b/console_ui/obj/Debug/net8.0/console_ui.AssemblyInfoInputs.cache
index 50d72d5..c0d8549 100644
--- a/console_ui/obj/Debug/net8.0/console_ui.AssemblyInfoInputs.cache
+++ b/console_ui/obj/Debug/net8.0/console_ui.AssemblyInfoInputs.cache
@@ -1 +1 @@
-b646cd9abdfaed63b2c066937a57ee292758ed891f5a7c5830756fb43e02e2ee
+25bd5e432f9b076e16dc7af22f86b1c575c43db1e24524d1d4b9fb3399bfa759
diff --git a/console_ui/obj/Debug/net8.0/console_ui.csproj.AssemblyReference.cache b/console_ui/obj/Debug/net8.0/console_ui.csproj.AssemblyReference.cache
index 03c341b..844202a 100644
Binary files a/console_ui/obj/Debug/net8.0/console_ui.csproj.AssemblyReference.cache and b/console_ui/obj/Debug/net8.0/console_ui.csproj.AssemblyReference.cache differ
diff --git a/data/Repository/IPresenceRepository.cs b/data/Repository/IPresenceRepository.cs
index ab404d1..bfbf9a3 100755
--- a/data/Repository/IPresenceRepository.cs
+++ b/data/Repository/IPresenceRepository.cs
@@ -17,6 +17,8 @@ namespace presence.data.Repository
bool DeletePresenceByGroup(int groupId);
bool DeletePresenceByUser(int userId);
bool DeletePresenceByDate(DateOnly startData, DateOnly endData);
+ bool DeletePresenceByClassNumberAndDateAndUserId(int classNumber, DateOnly date, int userId);
+
void UpdateAttendance(PresenceDao presence);
diff --git a/data/Repository/PresenceRepositoryImpl.cs b/data/Repository/PresenceRepositoryImpl.cs
index c0c944d..f18bcdd 100755
--- a/data/Repository/PresenceRepositoryImpl.cs
+++ b/data/Repository/PresenceRepositoryImpl.cs
@@ -122,6 +122,16 @@ namespace presence.data.Repository
return false;
}
+ public bool DeletePresenceByClassNumberAndDateAndUserId(int classNumber, DateOnly date, int userId)
+ {
+ var PresenceToDelete = _remoteDatabaseContext.Presences.FirstOrDefault(x => x.Date == date && x.ClassNumber == classNumber && x.UserId == userId);
+ _remoteDatabaseContext.Presences.Remove(PresenceToDelete);
+ _remoteDatabaseContext.SaveChanges();
+ return true;
+
+
+ }
+
public void UpdateAttendance(PresenceDao presence)
{
if (presence == null) throw new ArgumentNullException(nameof(presence));
diff --git a/data/bin/Debug/net8.0/data.dll b/data/bin/Debug/net8.0/data.dll
index a3c2baa..652b581 100644
Binary files a/data/bin/Debug/net8.0/data.dll and b/data/bin/Debug/net8.0/data.dll differ
diff --git a/data/bin/Debug/net8.0/data.pdb b/data/bin/Debug/net8.0/data.pdb
index d741cc5..4214da8 100644
Binary files a/data/bin/Debug/net8.0/data.pdb and b/data/bin/Debug/net8.0/data.pdb differ
diff --git a/data/obj/Debug/net8.0/data.AssemblyInfo.cs b/data/obj/Debug/net8.0/data.AssemblyInfo.cs
index 93d51b9..01dd5eb 100644
--- a/data/obj/Debug/net8.0/data.AssemblyInfo.cs
+++ b/data/obj/Debug/net8.0/data.AssemblyInfo.cs
@@ -13,10 +13,10 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("data")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
-[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+38cf16c345620460ae7f35458594b103cab78067")]
+[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+eadf72b51276624814f3e477c5bc69af93bf4792")]
[assembly: System.Reflection.AssemblyProductAttribute("data")]
[assembly: System.Reflection.AssemblyTitleAttribute("data")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
-// Создано классом WriteCodeFragment MSBuild.
+// Generated by the MSBuild WriteCodeFragment class.
diff --git a/data/obj/Debug/net8.0/data.AssemblyInfoInputs.cache b/data/obj/Debug/net8.0/data.AssemblyInfoInputs.cache
index 1fb552d..945c1ed 100644
--- a/data/obj/Debug/net8.0/data.AssemblyInfoInputs.cache
+++ b/data/obj/Debug/net8.0/data.AssemblyInfoInputs.cache
@@ -1 +1 @@
-c7ce76312ceb7b78b59ab7c078914f3d4e8a1907cd4153da36c3432f01ff593b
+2253ca6854105c04db3820ffeca7fdaa0791fa00d7171656efaaad4bd95ee96a
diff --git a/data/obj/Debug/net8.0/data.dll b/data/obj/Debug/net8.0/data.dll
index a3c2baa..652b581 100644
Binary files a/data/obj/Debug/net8.0/data.dll and b/data/obj/Debug/net8.0/data.dll differ
diff --git a/data/obj/Debug/net8.0/data.pdb b/data/obj/Debug/net8.0/data.pdb
index d741cc5..4214da8 100644
Binary files a/data/obj/Debug/net8.0/data.pdb and b/data/obj/Debug/net8.0/data.pdb differ
diff --git a/data/obj/Debug/net8.0/ref/data.dll b/data/obj/Debug/net8.0/ref/data.dll
index 32e6a1c..f145d01 100644
Binary files a/data/obj/Debug/net8.0/ref/data.dll and b/data/obj/Debug/net8.0/ref/data.dll differ
diff --git a/data/obj/Debug/net8.0/refint/data.dll b/data/obj/Debug/net8.0/refint/data.dll
index 32e6a1c..f145d01 100644
Binary files a/data/obj/Debug/net8.0/refint/data.dll and b/data/obj/Debug/net8.0/refint/data.dll differ
diff --git a/domain/UseCase/PresenceUseCase.cs b/domain/UseCase/PresenceUseCase.cs
index c71d104..133568d 100755
--- a/domain/UseCase/PresenceUseCase.cs
+++ b/domain/UseCase/PresenceUseCase.cs
@@ -230,6 +230,11 @@ namespace presence.domain.UseCase
return _presenceRepository.DeletePresenceByDate(startData, endData);
}
+ public bool DeletePresenceByClassNumberAndDateAndUserId(int ClassNumber, DateOnly date, int userId)
+ {
+ return _presenceRepository.DeletePresenceByClassNumberAndDateAndUserId(ClassNumber, date, userId);
+ }
+
public void UpdateAttendance(PresenceDao presence)
{
_presenceRepository.UpdateAttendance(presence);
diff --git a/domain/bin/Debug/net8.0/data.dll b/domain/bin/Debug/net8.0/data.dll
index a3c2baa..652b581 100644
Binary files a/domain/bin/Debug/net8.0/data.dll and b/domain/bin/Debug/net8.0/data.dll differ
diff --git a/domain/bin/Debug/net8.0/data.pdb b/domain/bin/Debug/net8.0/data.pdb
index d741cc5..4214da8 100644
Binary files a/domain/bin/Debug/net8.0/data.pdb and b/domain/bin/Debug/net8.0/data.pdb differ
diff --git a/domain/bin/Debug/net8.0/domain.dll b/domain/bin/Debug/net8.0/domain.dll
index b621fc1..5025c34 100644
Binary files a/domain/bin/Debug/net8.0/domain.dll and b/domain/bin/Debug/net8.0/domain.dll differ
diff --git a/domain/bin/Debug/net8.0/domain.pdb b/domain/bin/Debug/net8.0/domain.pdb
index 552b64e..d7f31ed 100644
Binary files a/domain/bin/Debug/net8.0/domain.pdb and b/domain/bin/Debug/net8.0/domain.pdb differ
diff --git a/domain/obj/Debug/net8.0/domain.AssemblyInfo.cs b/domain/obj/Debug/net8.0/domain.AssemblyInfo.cs
index 52f0bbf..bf0d704 100644
--- a/domain/obj/Debug/net8.0/domain.AssemblyInfo.cs
+++ b/domain/obj/Debug/net8.0/domain.AssemblyInfo.cs
@@ -13,10 +13,10 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("domain")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
-[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+38cf16c345620460ae7f35458594b103cab78067")]
+[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+eadf72b51276624814f3e477c5bc69af93bf4792")]
[assembly: System.Reflection.AssemblyProductAttribute("domain")]
[assembly: System.Reflection.AssemblyTitleAttribute("domain")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
-// Создано классом WriteCodeFragment MSBuild.
+// Generated by the MSBuild WriteCodeFragment class.
diff --git a/domain/obj/Debug/net8.0/domain.AssemblyInfoInputs.cache b/domain/obj/Debug/net8.0/domain.AssemblyInfoInputs.cache
index 24a145b..d100410 100644
--- a/domain/obj/Debug/net8.0/domain.AssemblyInfoInputs.cache
+++ b/domain/obj/Debug/net8.0/domain.AssemblyInfoInputs.cache
@@ -1 +1 @@
-bdff4fbeccb346e2cf4a8dfcc1d45f5250114d880df44801d9b74b9d8ac7603a
+f91ca13c27f8a90a479f0970f684bcd6ea0ccda85726b424d8a614ad54287fba
diff --git a/domain/obj/Debug/net8.0/domain.csproj.AssemblyReference.cache b/domain/obj/Debug/net8.0/domain.csproj.AssemblyReference.cache
index e50ea60..783f4f3 100644
Binary files a/domain/obj/Debug/net8.0/domain.csproj.AssemblyReference.cache and b/domain/obj/Debug/net8.0/domain.csproj.AssemblyReference.cache differ
diff --git a/domain/obj/Debug/net8.0/domain.dll b/domain/obj/Debug/net8.0/domain.dll
index b621fc1..5025c34 100644
Binary files a/domain/obj/Debug/net8.0/domain.dll and b/domain/obj/Debug/net8.0/domain.dll differ
diff --git a/domain/obj/Debug/net8.0/domain.pdb b/domain/obj/Debug/net8.0/domain.pdb
index 552b64e..d7f31ed 100644
Binary files a/domain/obj/Debug/net8.0/domain.pdb and b/domain/obj/Debug/net8.0/domain.pdb differ
diff --git a/domain/obj/Debug/net8.0/ref/domain.dll b/domain/obj/Debug/net8.0/ref/domain.dll
index fb204fa..de53793 100644
Binary files a/domain/obj/Debug/net8.0/ref/domain.dll and b/domain/obj/Debug/net8.0/ref/domain.dll differ
diff --git a/domain/obj/Debug/net8.0/refint/domain.dll b/domain/obj/Debug/net8.0/refint/domain.dll
index fb204fa..de53793 100644
Binary files a/domain/obj/Debug/net8.0/refint/domain.dll and b/domain/obj/Debug/net8.0/refint/domain.dll differ
diff --git a/presence_api/bin/Debug/net8.0/data.dll b/presence_api/bin/Debug/net8.0/data.dll
index 3167164..64ee5f3 100644
Binary files a/presence_api/bin/Debug/net8.0/data.dll and b/presence_api/bin/Debug/net8.0/data.dll differ
diff --git a/presence_api/bin/Debug/net8.0/data.pdb b/presence_api/bin/Debug/net8.0/data.pdb
index 855e471..60f74b6 100644
Binary files a/presence_api/bin/Debug/net8.0/data.pdb and b/presence_api/bin/Debug/net8.0/data.pdb differ
diff --git a/presence_api/bin/Debug/net8.0/domain.dll b/presence_api/bin/Debug/net8.0/domain.dll
index 755aed7..4d2a164 100644
Binary files a/presence_api/bin/Debug/net8.0/domain.dll and b/presence_api/bin/Debug/net8.0/domain.dll differ
diff --git a/presence_api/bin/Debug/net8.0/domain.pdb b/presence_api/bin/Debug/net8.0/domain.pdb
index 9fba452..b56a24a 100644
Binary files a/presence_api/bin/Debug/net8.0/domain.pdb and b/presence_api/bin/Debug/net8.0/domain.pdb differ
diff --git a/presence_api/bin/Debug/net8.0/presence_api.dll b/presence_api/bin/Debug/net8.0/presence_api.dll
index 629c2b1..e0b0c29 100644
Binary files a/presence_api/bin/Debug/net8.0/presence_api.dll and b/presence_api/bin/Debug/net8.0/presence_api.dll differ
diff --git a/presence_api/bin/Debug/net8.0/presence_api.pdb b/presence_api/bin/Debug/net8.0/presence_api.pdb
index 293193b..55889e6 100644
Binary files a/presence_api/bin/Debug/net8.0/presence_api.pdb and b/presence_api/bin/Debug/net8.0/presence_api.pdb differ
diff --git a/presence_api/obj/Debug/net8.0/presence_api.AssemblyInfo.cs b/presence_api/obj/Debug/net8.0/presence_api.AssemblyInfo.cs
index 0c3f137..36c469d 100644
--- a/presence_api/obj/Debug/net8.0/presence_api.AssemblyInfo.cs
+++ b/presence_api/obj/Debug/net8.0/presence_api.AssemblyInfo.cs
@@ -13,7 +13,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("presence_api")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
-[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+38cf16c345620460ae7f35458594b103cab78067")]
+[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+eadf72b51276624814f3e477c5bc69af93bf4792")]
[assembly: System.Reflection.AssemblyProductAttribute("presence_api")]
[assembly: System.Reflection.AssemblyTitleAttribute("presence_api")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
diff --git a/presence_api/obj/Debug/net8.0/presence_api.AssemblyInfoInputs.cache b/presence_api/obj/Debug/net8.0/presence_api.AssemblyInfoInputs.cache
index fa32ee9..582039f 100644
--- a/presence_api/obj/Debug/net8.0/presence_api.AssemblyInfoInputs.cache
+++ b/presence_api/obj/Debug/net8.0/presence_api.AssemblyInfoInputs.cache
@@ -1 +1 @@
-1e75923e7041345eb2f77db14fdab7a996030a49a36f5debb66b329692ed2bc1
+aeb387e4e85ce3ac4715fe5bfffc5e4071ed545312f35b7345a437287364ca5e
diff --git a/presence_api/obj/Debug/net8.0/presence_api.csproj.AssemblyReference.cache b/presence_api/obj/Debug/net8.0/presence_api.csproj.AssemblyReference.cache
index 48e8243..0492ec3 100644
Binary files a/presence_api/obj/Debug/net8.0/presence_api.csproj.AssemblyReference.cache and b/presence_api/obj/Debug/net8.0/presence_api.csproj.AssemblyReference.cache differ
diff --git a/presence_api/obj/Debug/net8.0/presence_api.dll b/presence_api/obj/Debug/net8.0/presence_api.dll
index 629c2b1..e0b0c29 100644
Binary files a/presence_api/obj/Debug/net8.0/presence_api.dll and b/presence_api/obj/Debug/net8.0/presence_api.dll differ
diff --git a/presence_api/obj/Debug/net8.0/presence_api.pdb b/presence_api/obj/Debug/net8.0/presence_api.pdb
index 293193b..55889e6 100644
Binary files a/presence_api/obj/Debug/net8.0/presence_api.pdb and b/presence_api/obj/Debug/net8.0/presence_api.pdb differ
diff --git a/presence_api/obj/Debug/net8.0/ref/presence_api.dll b/presence_api/obj/Debug/net8.0/ref/presence_api.dll
index 4cd3a3c..6bd10f0 100644
Binary files a/presence_api/obj/Debug/net8.0/ref/presence_api.dll and b/presence_api/obj/Debug/net8.0/ref/presence_api.dll differ
diff --git a/presence_api/obj/Debug/net8.0/refint/presence_api.dll b/presence_api/obj/Debug/net8.0/refint/presence_api.dll
index 4cd3a3c..6bd10f0 100644
Binary files a/presence_api/obj/Debug/net8.0/refint/presence_api.dll and b/presence_api/obj/Debug/net8.0/refint/presence_api.dll differ
diff --git a/ui/obj/Debug/net8.0/ui.AssemblyInfo.cs b/ui/obj/Debug/net8.0/ui.AssemblyInfo.cs
index 7283d5d..a0d06f2 100644
--- a/ui/obj/Debug/net8.0/ui.AssemblyInfo.cs
+++ b/ui/obj/Debug/net8.0/ui.AssemblyInfo.cs
@@ -13,7 +13,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("ui")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
-[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+38cf16c345620460ae7f35458594b103cab78067")]
+[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+eadf72b51276624814f3e477c5bc69af93bf4792")]
[assembly: System.Reflection.AssemblyProductAttribute("ui")]
[assembly: System.Reflection.AssemblyTitleAttribute("ui")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
diff --git a/ui/obj/Debug/net8.0/ui.AssemblyInfoInputs.cache b/ui/obj/Debug/net8.0/ui.AssemblyInfoInputs.cache
index e267151..e7e13e2 100644
--- a/ui/obj/Debug/net8.0/ui.AssemblyInfoInputs.cache
+++ b/ui/obj/Debug/net8.0/ui.AssemblyInfoInputs.cache
@@ -1 +1 @@
-6b630ab98cc90f908ad3afc0ecce6478a4e69213272d76fa17d581b71e586852
+34056f4ae144d0b6b9e005bea4d01e95d450e183e56708cb027e5d8487a4e243
diff --git a/ui/obj/Debug/net8.0/ui.csproj.AssemblyReference.cache b/ui/obj/Debug/net8.0/ui.csproj.AssemblyReference.cache
index 4b7b153..2828078 100644
Binary files a/ui/obj/Debug/net8.0/ui.csproj.AssemblyReference.cache and b/ui/obj/Debug/net8.0/ui.csproj.AssemblyReference.cache differ