mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-10-04 23:02:10 +00:00
Include commenter and recordType in GetWorkorderById comments response
This commit is contained in:
parent
5a4d8e2240
commit
cc87039a77
1 changed files with 1 additions and 1 deletions
|
|
@ -574,7 +574,7 @@ namespace Api.SeaHavenIndustries.Controllers
|
||||||
s.SignOffName,
|
s.SignOffName,
|
||||||
s.SignOffAttachment,
|
s.SignOffAttachment,
|
||||||
s.SignOffSignature,
|
s.SignOffSignature,
|
||||||
Comments = s.Comments.Select(c => new { c.Id, c.CreatedDate, c.Commenttext, c.Documents, userName = c.ApplicationUser != null ? c.ApplicationUser.FirstName : "" }),
|
Comments = s.Comments.Select(c => new { c.Id, c.CreatedDate, c.Commenttext, c.Commenter, c.RecordType, c.Documents, userName = c.ApplicationUser != null ? c.ApplicationUser.FirstName : "" }),
|
||||||
quotes = s.Quotes.Select(q => new { code = q.QuotId, q.Id })
|
quotes = s.Quotes.Select(q => new { code = q.QuotId, q.Id })
|
||||||
}).FirstOrDefaultAsync();
|
}).FirstOrDefaultAsync();
|
||||||
if (exist == null)
|
if (exist == null)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue