Apply Some Fix on Webinar Subscriber Dto Fills ...
This commit is contained in:
@@ -20,6 +20,7 @@ namespace xWebinarService.Models.Dtos
|
|||||||
public class XWebinarSubscriberDto : XBaseDto
|
public class XWebinarSubscriberDto : XBaseDto
|
||||||
{
|
{
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
|
public Guid WebinarId { get; set; }
|
||||||
public string SubscriberId { get; set; }
|
public string SubscriberId { get; set; }
|
||||||
public XPersonDto Subscriber { get; set; }
|
public XPersonDto Subscriber { get; set; }
|
||||||
public DateTime SubscribedOn { get; set; }
|
public DateTime SubscribedOn { get; set; }
|
||||||
|
|||||||
@@ -145,6 +145,7 @@ namespace xWebinarService.Providers
|
|||||||
var result = new XWebinarSubscriberDto
|
var result = new XWebinarSubscriberDto
|
||||||
{
|
{
|
||||||
Id = model.Id,
|
Id = model.Id,
|
||||||
|
WebinarId = model.WebinarId,
|
||||||
SubscriberId = model.SubscriberId,
|
SubscriberId = model.SubscriberId,
|
||||||
SubscribedOn = model.SubscribedOn,
|
SubscribedOn = model.SubscribedOn,
|
||||||
Subscriber = userInfo.ToXPersonDto(),
|
Subscriber = userInfo.ToXPersonDto(),
|
||||||
@@ -657,7 +658,7 @@ namespace xWebinarService.Providers
|
|||||||
//
|
//
|
||||||
// Check Entity Removed ...
|
// Check Entity Removed ...
|
||||||
result = !await WebinarRepository.IsExistsAsync(webinarId);
|
result = !await WebinarRepository.IsExistsAsync(webinarId);
|
||||||
|
|
||||||
//
|
//
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
@@ -996,13 +997,8 @@ namespace xWebinarService.Providers
|
|||||||
if (!query.Filter.IsNullOrEmpty())
|
if (!query.Filter.IsNullOrEmpty())
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
var filteredItems = new List<XWebinarSubscriberDto>();
|
items = items
|
||||||
|
.ApplyFilter(query.Filter);
|
||||||
//
|
|
||||||
// Implement Filtering Senario ...
|
|
||||||
|
|
||||||
//
|
|
||||||
items = filteredItems.AsEnumerable();
|
|
||||||
}
|
}
|
||||||
var filteredItemsCount = items.Count();
|
var filteredItemsCount = items.Count();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user