last temparory works on Module ...
This commit is contained in:
@@ -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
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Implement all Webinar Related Things here ...
|
||||||
|
/// </summary>
|
||||||
|
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<XWebinarDto> 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
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -24,6 +24,7 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="../xDataService/xDataService.csproj" />
|
<ProjectReference Include="../xDataService/xDataService.csproj" />
|
||||||
<ProjectReference Include="../xPushService/xPushService.csproj" />
|
<ProjectReference Include="../xPushService/xPushService.csproj" />
|
||||||
|
<ProjectReference Include="../xIdentityService/xIdentityService.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
Reference in New Issue
Block a user