Exemplo n.º 1
0
        public ActionResult Delete(string key, string lstArrId)
        {
            if (key != Keyapi)
            {
                return(Json(0, JsonRequestBehavior.AllowGet));
            }
            var lst = _da.GetListByArrId(lstArrId);

            foreach (var item in lst)
            {
                item.IsDeleted = true;
            }
            _da.Save();
            return(Json(1, JsonRequestBehavior.AllowGet));
        }