Include commenter and recordType in GetWorkorderById comments response

This commit is contained in:
Adam Moussa 2026-04-16 17:41:11 -04:00
parent 5a4d8e2240
commit cc87039a77

View file

@ -574,7 +574,7 @@ namespace Api.SeaHavenIndustries.Controllers
s.SignOffName,
s.SignOffAttachment,
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 })
}).FirstOrDefaultAsync();
if (exist == null)