Hi @Jerry Lipan ,
My question is, how to return in format: SalesPersonId & SalesPersonDisplay ?
Id = SalesPersonId
Name = SalesPersonDisplay
var GetSalesPersonList = _AspNetUsers
.Select(d => new { d.Id, d.Name }).ToList();
You can modify the above code as below:
var GetSalesPersonList = _AspNetUsers
.Select(d => new { SalesPersonId = d.Id, SalesPersonDisplay = d.Name }).ToList();
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best regards,
Dillion