Exemplo n.º 1
0
 public ActionResult Delete(string ids)
 {
     string[] idArr = ids.Split(',');
     if (idArr.Length > 0)
     {
         foreach (var s in idArr)
         {
             FreeProductService.Delete(Convert.ToInt32(s));
         }
     }
     return(Json(new { code = 0 }, JsonRequestBehavior.AllowGet));
 }
Exemplo n.º 2
0
        public ActionResult DeleteAll()
        {
            int result = FreeProductService.Delete();

            return(Json(new { code = 0, data = result }, JsonRequestBehavior.AllowGet));
        }