摘要: //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) 编辑