From 330201023ba594a79cf5355e24d4d6700c30af04 Mon Sep 17 00:00:00 2001 From: Hadi Khazaee Asl Date: Tue, 4 Nov 2025 18:10:23 +0330 Subject: [PATCH] last temparory works on Module ... --- Providers/XWebinarProvider.cs | 59 +++++++++++++++++++++++++++++++++++ xWebinarService.csproj | 1 + 2 files changed, 60 insertions(+) create mode 100644 Providers/XWebinarProvider.cs diff --git a/Providers/XWebinarProvider.cs b/Providers/XWebinarProvider.cs new file mode 100644 index 0000000..4d702ee --- /dev/null +++ b/Providers/XWebinarProvider.cs @@ -0,0 +1,59 @@ +using System.Threading.Tasks; +using xIdentityService.Interfaces; +using xWebinarService.Interfaces.Entities; +using xWebinarService.Models.Dtos; +using xWebinarService.Models.Entities; + +namespace xWebinarService.Providers +{ + /// + /// Implement all Webinar Related Things here ... + /// + public class XWebinarProvider + { + // + #region Props ... + public IXIdentityProvider IdentityProvider; + public IXWebinarRepository WebinarRepository; + public IXWebinarSubscriberRepository WebinarSubscriberRepository; + #endregion; + + // + #region Constructor ... + public XWebinarProvider( + IXIdentityProvider identityProvider, + IXWebinarRepository webinarRepository, + IXWebinarSubscriberRepository webinarSubscriberRepository + ) + { + // + this.IdentityProvider = identityProvider; + this.WebinarRepository = webinarRepository; + this.WebinarSubscriberRepository = webinarSubscriberRepository; + } + #endregion + + // + #region Tools ... + public async Task ToXWebinarDto(XWebinar model) + { + // + XWebinarDto result = null; + + // + result.Id = model.Id; + result.OwnerId = model.OwnerId; + result.CreatedOn = model.CreatedOn; + + // + // Fill Resources ... + + // + // Fill Owner ... + + // + return result; + } + #endregion + } +} \ No newline at end of file diff --git a/xWebinarService.csproj b/xWebinarService.csproj index 4dc7862..57cd5be 100644 --- a/xWebinarService.csproj +++ b/xWebinarService.csproj @@ -24,6 +24,7 @@ +