Where is the PostAsJsonAsync method in ASP.NET Core?

后端 未结 14 1747
再見小時候
再見小時候 2020-12-29 00:51

I was looking for the PostAsJsonAsync() extension method in ASP.NET Core. Based on this article, it\'s available in the Microsoft.AspNet.WebApi.Client

14条回答
  •  礼貌的吻别
    2020-12-29 01:48

    If you are trying to use PostJsonAsync, PutJsonAsync or any other json extension methods in Blazor you need to add a following statement

    using Microsoft.AspNetCore.Components;
    

提交回复
热议问题