public ActionResult Deletes(string strIds, ListSecondKillCommodityss request) { ResultMsg result = new ResultMsg(); int successCount = 0; int errorCount = 0; if (!string.IsNullOrEmpty(strIds)) { string[] sId = strIds.Split(','); foreach (var id in sId) { int intId = 0; if (int.TryParse(id, out intId)) { result = request.Delete(intId); if (result.Code == 1) { successCount += 1; } else { errorCount += 1; } } } } result.CodeText = "删除成功" + successCount + "个用户,失败" + errorCount + "个"; return(Json(result)); }
public ActionResult List(ListSecondKillCommodityss request) { request.Query(); return(View(request)); }
public ActionResult Delete(int id, ListSecondKillCommodityss request) { return(Json(request.Delete(id))); }