摘要: 服务方法 1 [HttpGet] 2 public string GetWebName(string name,string pwd) 3 { 4 Dictionary<string, string> dict = new Dictionary<string, string>(); 5 dict.A 阅读全文
posted @ 2020-03-30 22:44 一叶孤城 阅读(906) 评论(0) 推荐(0)
摘要: 服务方法 1 [AllowAnonymousAttribute] 2 [HttpPost] 3 public string PostWebName(dynamic login) 4 { 5 Dictionary<string, string> dict = new Dictionary<string 阅读全文
posted @ 2020-03-30 22:18 一叶孤城 阅读(1241) 评论(0) 推荐(0)
摘要: 第一种服务方法 [FromBody]string 单值参数 1 [HttpPost] 2 public string PostWebNameOne([FromBody]string para) 3 { 4 Dictionary<string, string> dict = new Dictionar 阅读全文
posted @ 2020-03-30 22:00 一叶孤城 阅读(898) 评论(0) 推荐(0)