Hopefully this is a simple question. I need a list of App Users in a role in .razor.cs.
I can get this for the Current User is ok like this: @using Volo.Abp.Users @inject ICurrentUser CurrentUser .... bool isAdmin = CurrentUser.IsInRole("admin");
Can you please provide some sample code has to how to get a List<AppUser>()
Thank you.
Can you please provide a link to deployment of Blazor Web Assembly application. Deployment to IIS. Specifically the two deployments required. One for the API and one for the Blazor App.
Is it possible to deploy a combined instance? I.e. no need for API seperation.
Many thanks, Roger
When creating OrderLine entity that has a Navaigation to Order the build fails. The error occurs in CreateModal.cshtml.cs with lookup to the Order. The problem is "xxxxxx" in the OrderLookup. The xxxxxx text is automatically generated by CRUD abp suite. See below:
public async Task OnGetAsync()
{
OrderLine = new OrderLineCreateDto();
OrderLookupList.AddRange((
await _orderLineAppService.GetOrderLookupAsync(new LookupRequestDto
{ xxxxxx
MaxResultCount = LimitedResultRequestDto.MaxMaxResultCount
})).Items.Select(t => new SelectListItem(t.DisplayName, t.Id.ToString())).ToList()
);
await Task.CompletedTask;
Severity Code Description Project File Line Suppression State Error CS0103 The name 'xxxxxx' does not exist in the current context .....Web\Pages\OrderLines\CreateModal.cshtml.cs 35 Active
This occurs on a new project built entirely on Version 4.1.