This commit is contained in:
@@ -183,7 +183,7 @@ namespace AyaNova.Api.Controllers
|
|||||||
if (!Authorized.HasModifyRole(HttpContext.Items, AyaType.CustomerNotifySubscription))
|
if (!Authorized.HasModifyRole(HttpContext.Items, AyaType.CustomerNotifySubscription))
|
||||||
return StatusCode(403, new ApiNotAuthorizedResponse());
|
return StatusCode(403, new ApiNotAuthorizedResponse());
|
||||||
|
|
||||||
var subs = await ct.CustomerNotifySubscription.AsNoTracking().ToListAsync();
|
var subs = await ct.CustomerNotifySubscription.AsNoTracking().OrderBy(z=>z.Id).ToListAsync();
|
||||||
|
|
||||||
List<CustomerNotifySubscriptionRecord> ret = new List<CustomerNotifySubscriptionRecord>();
|
List<CustomerNotifySubscriptionRecord> ret = new List<CustomerNotifySubscriptionRecord>();
|
||||||
foreach (var s in subs)
|
foreach (var s in subs)
|
||||||
|
|||||||
@@ -164,7 +164,7 @@ namespace AyaNova.Api.Controllers
|
|||||||
//and checking of rights
|
//and checking of rights
|
||||||
long UserId = UserIdFromContext.Id(HttpContext.Items);
|
long UserId = UserIdFromContext.Id(HttpContext.Items);
|
||||||
|
|
||||||
var subs = await ct.NotifySubscription.AsNoTracking().Where(z => z.UserId == UserId).ToListAsync();
|
var subs = await ct.NotifySubscription.AsNoTracking().Where(z => z.UserId == UserId).OrderBy(z=>z.Id).ToListAsync();
|
||||||
|
|
||||||
List<NotifySubscriptionRecord> ret = new List<NotifySubscriptionRecord>();
|
List<NotifySubscriptionRecord> ret = new List<NotifySubscriptionRecord>();
|
||||||
foreach (var s in subs)
|
foreach (var s in subs)
|
||||||
|
|||||||
Reference in New Issue
Block a user