MisterCat100

Results 6 comments of MisterCat100

public static List ? GetFavouriteArticles( this IdentityUser user) { return user.GetProperty( ArthiveConsts.FavouriteArticlesPropertyName).As(); } when controller calls this method [HttpGet] [Route("{id:guid}/get-favourite-articles")] public Task GetFavouriteArticlesAsync( Guid id) { return _userProfileAppService.GetFavouriteArticlesAsync(id); } to...

**Hello! I changed logic a little, now i using List of Guid, but have the same problem** ``` public static List? GetFavouriteArticles( this IdentityUser user) { return user.GetProperty( ArthiveConsts.FavouriteArticlesPropertyName).As(); }...

> What type did you set for the property? > > List? is an open generic type, which is not valid on its own. That’s likely why you're seeing the...

i resolved the problem, by serializing JsonElement, but cat you please explain, why returns JsonElement, when writes, that will return object? **Here, how it wrote in the debugger variables** ![Image](https://github.com/user-attachments/assets/2880ca9a-f905-4f67-a1c1-648c79c1b135)

> hi > > Can you share a test project to reproduce it? > > Thanks. you dont need test project, so why returns JsonElement, when writes, that will return...

Thank you very much for explanation! So, if it lacks of type, why writes, that it is JsonElement?