This commit is contained in:
2023-04-21 17:40:11 +00:00
parent c29a5fd18a
commit 7cc59e329a
2 changed files with 2 additions and 1 deletions

View File

@@ -68,6 +68,7 @@ namespace Sockeye.Biz
case SockType.GZCase:
return new GZCaseBiz(ct, userId, translationId, roles);
case SockType.Subscription:
case SockType.SubscriptionItem:
return new SubscriptionBiz(ct, userId, translationId, roles);
default:

View File

@@ -66,7 +66,7 @@ namespace Sockeye.Biz
////////////////////////////////////////////////////////////////////////////////////////////////
//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);
if (logTheGetEvent && ret != null)