21 Eylül 2022 Çarşamba

.net 6 mapget kullanımı

 app.UseEndpoints(endpoints =>
{
    endpoints.MapGet("/", async context =>
    {
        var response = JsonConvert.SerializeObject(StaticValuesConfig.RoleClaims);
        context.Response.ContentType = "application/json";
        await context.Response.WriteAsync(response);
    });
});

Hiç yorum yok:

Yorum Gönder

.net 6 mapget kullanımı

 app.UseEndpoints(endpoints => {     endpoints.MapGet("/", async context =>     {         var response = JsonConvert.Seriali...