public virtual ActionResult List(ListGoods request) { if (ModelState.IsValid) { ModelState.Clear(); request.Query(); } return(View("List", request));; }
public ActionResult Deletes(ListGoods request) { var ids = request.CheckItems.GetCheckedIds(); foreach (var id in ids) { request.Delete(id); } return(List(request)); }
public async Task <JsonResponse> Gets() { JsonResponse <ListGoods> result = new JsonResponse <ListGoods>(); ListGoods goods = new ListGoods(); try { goods.Listgoods = await _context.Goods.ToArrayAsync(); result.Data = goods; result.Msg = "查询成功"; result.Status = ErrorCode.Sucess; return(result); } catch { result.Data = null; result.Msg = "查询失败"; result.Status = ErrorCode.Unknown; return(result); } }
public ActionResult Delete(int id, ListGoods request) { request.Delete(id); return(List(request)); }
public ActionResult Resume(int id, ListGoods request) { request.Resume(id); return(List(request)); }
public ActionResult Suspend(int id, ListGoods request) { request.Suspend(id); return(List(request)); }