vs2019创建webapi
1.创建新的项目
2.选择.NET CORE的ASP .NET CORE WEB应用程序
3.定义项目名称和存放地点
4.选择API创建项目
5.删除原本的无用的类
6.添加新的方法类
7.设置路由
using Microsoft.AspNetCore.Components;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace WEBAPI.Controllers
{
/// <summa
评论5