摘要: 添加界面 @{ ViewBag.Title = "Detail";} <a href="/Home/Index">首页</a> > <a href="/Product/Index">商品列表</a>><h2>商品id是:@ViewBag.Id</h2><input type="hidden" id= 阅读全文
posted @ 2020-06-30 20:59 G蠢蠢 阅读(218) 评论(0) 推荐(0) 编辑
摘要: <script> $(function () { show(); }) function show() { $.ajax({ url: 'http://localhost:53134/api/Student/Show', type: 'Get', dataType: 'json', success: 阅读全文
posted @ 2020-06-27 08:28 G蠢蠢 阅读(106) 评论(0) 推荐(0) 编辑
摘要: //1.获取秒杀商品信息的接口 public ProductInfo GetProduct(int productId) { ProductInfo productInfo = new ProductInfo(); productInfo.PId = 1; productInfo.PName = " 阅读全文
posted @ 2020-06-27 08:12 G蠢蠢 阅读(114) 评论(0) 推荐(0) 编辑
摘要: //1.获取秒杀商品详情接口 [Route("api/GetProduct")] [HttpGet] public ProductInfo GetProduct(int productId = 1) { ProductInfo info = new ProductInfo(); info.PId = 阅读全文
posted @ 2020-06-26 20:49 G蠢蠢 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 控制器 public ActionResult Index() { return View(); } public ActionResult GetKill() { return View(); } public ActionResult DingDan() { return View(); } @ 阅读全文
posted @ 2020-06-26 19:55 G蠢蠢 阅读(109) 评论(0) 推荐(0) 编辑
摘要: GoodBll bll = new GoodBll(); /// <summary> /// 添加 /// </summary> /// <param name="model"></param> /// <returns></returns> [HttpPost] public int Add(st 阅读全文
posted @ 2020-06-26 19:51 G蠢蠢 阅读(102) 评论(0) 推荐(0) 编辑
摘要: BLL GoodDal dal = new GoodDal(); /// <summary> /// 添加 /// </summary> /// <param name="model"></param> /// <returns></returns> public int Add(Good mode 阅读全文
posted @ 2020-06-26 19:49 G蠢蠢 阅读(104) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc; namespace WeekMvc.Controllers{ public class Goo 阅读全文
posted @ 2020-06-26 19:42 G蠢蠢 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 删除,显示 @{ ViewBag.Title = "Show";} <h2>Show</h2><script src="~/Content/BandSel.js"></script> <table> <tr> <td><input id="txtName" type="text" class="fo 阅读全文
posted @ 2020-06-26 19:34 G蠢蠢 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 一般处理程序 filename using System;using System.Collections.Generic;using System.Linq;using System.Web;namespace EFDemo{ /// <summary> /// FileUpload 的摘要说明 阅读全文
posted @ 2020-06-17 08:21 G蠢蠢 阅读(138) 评论(0) 推荐(0) 编辑