From 908715ff157b919d2503550d8a03d5b437a91edb Mon Sep 17 00:00:00 2001 From: 1eG0ist Date: Thu, 12 Dec 2024 22:47:32 +0300 Subject: [PATCH] regular-commit --- .../Models/GroupSubjectPresenter.cs | 12 +++++++++ Presence.Desktop/Models/PresencePresenter.cs | 12 +++++++++ Presence.Desktop/Models/SemesterPresenter.cs | 12 +++++++++ Presence.Desktop/Models/VisitPresenter.cs | 12 +++++++++ data/Repository/SQLPresenceRepository.cs | 13 ++++++++++ domain/Service/PresenceService.cs | 25 +++++++++++++++++++ 6 files changed, 86 insertions(+) create mode 100644 Presence.Desktop/Models/GroupSubjectPresenter.cs create mode 100644 Presence.Desktop/Models/PresencePresenter.cs create mode 100644 Presence.Desktop/Models/SemesterPresenter.cs create mode 100644 Presence.Desktop/Models/VisitPresenter.cs create mode 100644 data/Repository/SQLPresenceRepository.cs create mode 100644 domain/Service/PresenceService.cs diff --git a/Presence.Desktop/Models/GroupSubjectPresenter.cs b/Presence.Desktop/Models/GroupSubjectPresenter.cs new file mode 100644 index 0000000..d13c008 --- /dev/null +++ b/Presence.Desktop/Models/GroupSubjectPresenter.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Presence.Desktop.Models +{ + internal class GroupSubjectPresenter + { + } +} diff --git a/Presence.Desktop/Models/PresencePresenter.cs b/Presence.Desktop/Models/PresencePresenter.cs new file mode 100644 index 0000000..cfc968c --- /dev/null +++ b/Presence.Desktop/Models/PresencePresenter.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Presence.Desktop.Models +{ + internal class PresencePresenter + { + } +} diff --git a/Presence.Desktop/Models/SemesterPresenter.cs b/Presence.Desktop/Models/SemesterPresenter.cs new file mode 100644 index 0000000..2cf7e1e --- /dev/null +++ b/Presence.Desktop/Models/SemesterPresenter.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Presence.Desktop.Models +{ + internal class SemesterPresenter + { + } +} diff --git a/Presence.Desktop/Models/VisitPresenter.cs b/Presence.Desktop/Models/VisitPresenter.cs new file mode 100644 index 0000000..0cf2fa6 --- /dev/null +++ b/Presence.Desktop/Models/VisitPresenter.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Presence.Desktop.Models +{ + class VisitPresenter + { + } +} diff --git a/data/Repository/SQLPresenceRepository.cs b/data/Repository/SQLPresenceRepository.cs new file mode 100644 index 0000000..fb6793e --- /dev/null +++ b/data/Repository/SQLPresenceRepository.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace data.Repository +{ + public class SQLPresenceRepository + { + private readonly RemoteDatabaseContext _dbContext; + } +} diff --git a/domain/Service/PresenceService.cs b/domain/Service/PresenceService.cs new file mode 100644 index 0000000..0aa8597 --- /dev/null +++ b/domain/Service/PresenceService.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Data.DAO; +using data.Repository; + +namespace domain.Service +{ + class PresenceService + { + private readonly SQLPresenceRepository _presenceRepository; + + public PresenceService(SQLPresenceRepository presenceRepository) + { + _presenceRepository = presenceRepository; + } + + public List GetAllAttendances() + { + return _presenceRepository.GetAllPresences().ToList(); + } + } +}