This commit is contained in:
@@ -13,7 +13,7 @@ using Newtonsoft.Json;
|
|||||||
|
|
||||||
namespace AyaNova.Biz
|
namespace AyaNova.Biz
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
internal class TaskGroupBiz : BizObject, IJobObject, ISearchAbleObject, IReportAbleObject, IExportAbleObject, IImportAbleObject
|
internal class TaskGroupBiz : BizObject, IJobObject, ISearchAbleObject, IReportAbleObject, IExportAbleObject, IImportAbleObject
|
||||||
{
|
{
|
||||||
@@ -46,7 +46,7 @@ namespace AyaNova.Biz
|
|||||||
//
|
//
|
||||||
internal async Task<TaskGroup> CreateAsync(TaskGroup newObject)
|
internal async Task<TaskGroup> CreateAsync(TaskGroup newObject)
|
||||||
{
|
{
|
||||||
|
|
||||||
await ValidateAsync(newObject, null);
|
await ValidateAsync(newObject, null);
|
||||||
if (HasErrors)
|
if (HasErrors)
|
||||||
return null;
|
return null;
|
||||||
@@ -104,7 +104,7 @@ namespace AyaNova.Biz
|
|||||||
//
|
//
|
||||||
internal async Task<TaskGroup> GetAsync(long id, bool logTheGetEvent = true)
|
internal async Task<TaskGroup> GetAsync(long id, bool logTheGetEvent = true)
|
||||||
{
|
{
|
||||||
var ret = await ct.TaskGroup.AsNoTracking().Include(z => z.Items).SingleOrDefaultAsync(m => m.Id == id);
|
var ret = await ct.TaskGroup.AsNoTracking().Include(z => z.Items.OrderBy(item => item.Sequence)).SingleOrDefaultAsync(m => m.Id == id);
|
||||||
if (logTheGetEvent && ret != null)
|
if (logTheGetEvent && ret != null)
|
||||||
await EventLogProcessor.LogEventToDatabaseAsync(new Event(UserId, id, BizType, AyaEvent.Retrieved), ct);
|
await EventLogProcessor.LogEventToDatabaseAsync(new Event(UserId, id, BizType, AyaEvent.Retrieved), ct);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user