: )
hi
Have you tried this?
public virtual async Task<PagedResultDto<CityWithNavigationPropertiesDto>> GetListAsync(GetCitiesInput input)
{
var totalCount = await _cityRepository.GetCountAsync(input.FilterText, input.Name, input.IsActive, input.CountryId);
var items = await _cityRepository.GetListWithNavigationPropertiesAsync(input.FilterText, input.Name, input.IsActive, input.CountryId, input.Sorting, input.MaxResultCount, input.SkipCount);
var dto = ObjectMapper.Map<List<CityWithNavigationProperties>, List<CityWithNavigationPropertiesDto>>(items);
var tmp = dto.FirstOrDefault();
tmp.City.Name = "newValue";
return new PagedResultDto<CityWithNavigationPropertiesDto>
{
TotalCount = totalCount,
Items = dto
};
}
Of course if you don't want to change the entities, You can inject the Read-Only Repositories
see https://github.com/abpframework/abp/pull/17421
ok.
If I understand correctly, your angular has got an access_token
http://localhost:4200/oidcredirect#access_token=eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIiw
access token to call your website's API to verify that it is correct.
For example:GET /api/account/my-profile
Authorization: Bearer <your token>
/api/abp/application-configuration request headershi
You can check these links. https://abp.io/support/questions/2042/ABP-Background-Job-retry https://github.com/abpframework/abp/issues/10583
hi
Can you use the website URL in your health check code?
https://abp.io/support/questions/3327/Health-Check-Problem-on-IIS-SystemUriFormatException-Invalid-URI-The-hostname-could-not-be-parsed#answer-51baf847-087a-2aa1-1d76-3a04d9420894
hi
Can you check the HTML of the select element?
I think the #selectedVendor .form-control selector is wrong
hi
I have checked the logs.
The 400 error is about Antiforgery token validation
[15:02:46 INF] Antiforgery token validation failed. The required antiforgery header value "RequestVerificationToken" is not present.
Microsoft.AspNetCore.Antiforgery.AntiforgeryValidationException: The required antiforgery header value "RequestVerificationToken" is not present.
at Microsoft.AspNetCore.Antiforgery.DefaultAntiforgery.ValidateRequestAsync(HttpContext httpContext)
at Microsoft.AspNetCore.Mvc.ViewFeatures.Filters.ValidateAntiforgeryTokenAuthorizationFilter.OnAuthorizationAsync(AuthorizationFilterContext context)
[15:02:46 INF] Authorization failed for the request at filter 'Microsoft.AspNetCore.Mvc.ViewFeatures.Filters.AutoValidateAntiforgeryTokenAuthorizationFilter'.
[15:02:46 INF] Executing StatusCodeResult, setting HTTP status code 400
Can you share a demo project?
I will try to reproduce and check it
Thanks.