This commit is contained in:
2018-09-04 22:10:21 +00:00
parent 43db21cccd
commit 81fcc16486
2 changed files with 48 additions and 3 deletions

View File

@@ -431,9 +431,33 @@ namespace AyaNova.Biz
}
////////////////////////////////////////////////////////////////////////////////////////////////
// Utilities
//
internal static object CleanUserForReturn(User o)
{
return new
{
Id = o.Id,
ConcurrencyToken = o.ConcurrencyToken,
OwnerId = o.OwnerId,
Active = o.Active,
Name = o.Name,
Roles = o.Roles,
LocaleId = o.LocaleId,
UserType = o.UserType,
EmployeeNumber = o.EmployeeNumber,
Notes = o.Notes,
ClientId = o.ClientId,
HeadOfficeId = o.HeadOfficeId,
SubVendorId = o.SubVendorId
};
}
////////////////////////////////////////////////////////////////////////////////////////////////
//JOB / OPERATIONS
// JOB / OPERATIONS
//
public async Task HandleJobAsync(OpsJob job)
{