From d78c16662f57eeeea9abf9bf1501851eebfa439f Mon Sep 17 00:00:00 2001 From: funa4i Date: Mon, 28 Oct 2024 20:25:02 +0400 Subject: [PATCH] =?UTF-8?q?=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- StudentProgressRecord/Entity/Department.cs | 9 +++++---- .../IRepositories/IGroupRepository.cs | 5 +++-- StudentProgressRecord/Program.cs | 2 ++ StudentProgressRecord/RepositoryImp/GroupRepository.cs | 10 ++++------ 4 files changed, 14 insertions(+), 12 deletions(-) diff --git a/StudentProgressRecord/Entity/Department.cs b/StudentProgressRecord/Entity/Department.cs index 4f018ae..246cc5f 100644 --- a/StudentProgressRecord/Entity/Department.cs +++ b/StudentProgressRecord/Entity/Department.cs @@ -17,11 +17,12 @@ namespace StudentProgressRecord.Entity public static Department CreateDepartment(long id, string DepartmentName, long facultyId) { - return new Department - { + return new Department + { Id = id, - DepartmentName = DepartmentName, - facultyId = facultyId + DepartmentName = DepartmentName, + facultyId = facultyId }; + } } } diff --git a/StudentProgressRecord/IRepositories/IGroupRepository.cs b/StudentProgressRecord/IRepositories/IGroupRepository.cs index 03213d4..e73f1e3 100644 --- a/StudentProgressRecord/IRepositories/IGroupRepository.cs +++ b/StudentProgressRecord/IRepositories/IGroupRepository.cs @@ -1,8 +1,9 @@ -using System; +using StudentProgressRecord.Entity; +using System; using System.Collections.Generic; using System.Linq; using System.Text; -using System.Text.RegularExpressions; + using System.Threading.Tasks; namespace StudentProgressRecord.Repositories diff --git a/StudentProgressRecord/Program.cs b/StudentProgressRecord/Program.cs index 03f352d..676d5d5 100644 --- a/StudentProgressRecord/Program.cs +++ b/StudentProgressRecord/Program.cs @@ -1,3 +1,4 @@ + namespace StudentProgressRecord { internal static class Program @@ -13,5 +14,6 @@ namespace StudentProgressRecord ApplicationConfiguration.Initialize(); Application.Run(new Form1()); } + } } \ No newline at end of file diff --git a/StudentProgressRecord/RepositoryImp/GroupRepository.cs b/StudentProgressRecord/RepositoryImp/GroupRepository.cs index 530784f..822ecf5 100644 --- a/StudentProgressRecord/RepositoryImp/GroupRepository.cs +++ b/StudentProgressRecord/RepositoryImp/GroupRepository.cs @@ -1,24 +1,22 @@ using StudentProgressRecord.Entity; -using StudentProgressRecord.Repositories; using System; using System.Collections.Generic; using System.Linq; using System.Text; - using System.Threading.Tasks; -namespace StudentProgressRecord.RepositoryImp +namespace StudentProgressRecord.Repositories { public class GroupRepository : IGroupRepository { public void CreateGroup(Group group) { - + } public void DeleteGroup(long id) { - + } public Group ReadGroupById(long id) @@ -33,7 +31,7 @@ namespace StudentProgressRecord.RepositoryImp public void UpdateGroup(Group group) { - + } } }