From 26da83afbacb32e0747365acef2fa22c2343aec8 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 17 Oct 2024 15:13:34 +0300 Subject: [PATCH] first commit --- Data/Repository/GroupRepositoryImpl.cs | 2 +- Domain/UseCase/GroupUseCase.cs | 4 ++-- UI/UserConsole.cs | 2 +- obj/Debug/net8.0/Demo.AssemblyInfo.cs | 2 +- obj/Debug/net8.0/Demo.AssemblyInfoInputs.cache | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Data/Repository/GroupRepositoryImpl.cs b/Data/Repository/GroupRepositoryImpl.cs index 4eac5cd..7a8cb9e 100644 --- a/Data/Repository/GroupRepositoryImpl.cs +++ b/Data/Repository/GroupRepositoryImpl.cs @@ -19,7 +19,7 @@ namespace Demo.Data.Repository GetAllGroups.Add(groupLocalEntity); } - public GroupLocalEntity? UpdateUserById(GroupLocalEntity groupUpdateLocalEntity) + public GroupLocalEntity? UpdateGroup(GroupLocalEntity groupUpdateLocalEntity) { int index = GetAllGroups.FindIndex(x => x.ID == groupUpdateLocalEntity.ID); if (index == -1) return null; diff --git a/Domain/UseCase/GroupUseCase.cs b/Domain/UseCase/GroupUseCase.cs index 7a1023d..790bf6c 100644 --- a/Domain/UseCase/GroupUseCase.cs +++ b/Domain/UseCase/GroupUseCase.cs @@ -23,14 +23,14 @@ namespace Demo.Domain.UseCase return true; } - public Group UpdateUser(Group group) + public Group UpdateGroup(Group group) { GroupLocalEntity groupLocalEntity = new GroupLocalEntity { ID = group.ID, Name = group.Name }; - GroupLocalEntity? result = _repositoryGroupImpl.UpdateUserById(groupLocalEntity); + GroupLocalEntity? result = _repositoryGroupImpl.UpdateGroup(groupLocalEntity); if (result == null) { throw new Exception("Не удалось обновить пользователя: пользователь не найден."); diff --git a/UI/UserConsole.cs b/UI/UserConsole.cs index e011307..c98dea3 100644 --- a/UI/UserConsole.cs +++ b/UI/UserConsole.cs @@ -74,7 +74,7 @@ namespace Demo.UI { try { - Group output = _groupUseCase.UpdateUser(group); + Group output = _groupUseCase.UpdateGroup(group); StringBuilder groupOutput = new StringBuilder(); groupOutput.AppendLine($"Обновленная группа: {output.ID}\t{output.Name}"); Console.WriteLine(groupOutput); diff --git a/obj/Debug/net8.0/Demo.AssemblyInfo.cs b/obj/Debug/net8.0/Demo.AssemblyInfo.cs index 14c16db..118f4ae 100644 --- a/obj/Debug/net8.0/Demo.AssemblyInfo.cs +++ b/obj/Debug/net8.0/Demo.AssemblyInfo.cs @@ -13,7 +13,7 @@ using System.Reflection; [assembly: System.Reflection.AssemblyCompanyAttribute("Demo")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] -[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+d5ff9f45a55af13593d3b8a9b65ecffccf59b0a7")] [assembly: System.Reflection.AssemblyProductAttribute("Demo")] [assembly: System.Reflection.AssemblyTitleAttribute("Demo")] [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] diff --git a/obj/Debug/net8.0/Demo.AssemblyInfoInputs.cache b/obj/Debug/net8.0/Demo.AssemblyInfoInputs.cache index 027d67d..8c24bc0 100644 --- a/obj/Debug/net8.0/Demo.AssemblyInfoInputs.cache +++ b/obj/Debug/net8.0/Demo.AssemblyInfoInputs.cache @@ -1 +1 @@ -eb16b2b154799358c5c37f7f25193ef306ab5592617791ff431f7a24a66875c2 +5bce74879fd45efe103c6f650dd3b5b74cc20c28f77d21ab4268da5f80b45640