This commit is contained in:
@@ -68,6 +68,7 @@ namespace Sockeye.Biz
|
|||||||
case SockType.GZCase:
|
case SockType.GZCase:
|
||||||
return new GZCaseBiz(ct, userId, translationId, roles);
|
return new GZCaseBiz(ct, userId, translationId, roles);
|
||||||
case SockType.Subscription:
|
case SockType.Subscription:
|
||||||
|
case SockType.SubscriptionItem:
|
||||||
return new SubscriptionBiz(ct, userId, translationId, roles);
|
return new SubscriptionBiz(ct, userId, translationId, roles);
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ namespace Sockeye.Biz
|
|||||||
////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
//GET
|
//GET
|
||||||
//
|
//
|
||||||
internal async Task<Subscription> GetAsync(long id, bool logTheGetEvent = true)
|
internal async Task<Subscription> GetAsync(long id, bool logTheGetEvent = true, bool populateForReporting = false)
|
||||||
{
|
{
|
||||||
var ret = await ct.Subscription.Include(z => z.Items.OrderByDescending(x=>x.Active).ThenBy(x => x.ExpireDate)).AsNoTracking().SingleOrDefaultAsync(z => z.Id == id);
|
var ret = await ct.Subscription.Include(z => z.Items.OrderByDescending(x=>x.Active).ThenBy(x => x.ExpireDate)).AsNoTracking().SingleOrDefaultAsync(z => z.Id == id);
|
||||||
if (logTheGetEvent && ret != null)
|
if (logTheGetEvent && ret != null)
|
||||||
|
|||||||
Reference in New Issue
Block a user