예제 #1
0
        public JsonResult Delete(int[] Ids)
        {
            IQueryable <Staff> staffs = StaffService.GetModels(p => Ids.Contains(p.Id));
            int count = StaffService.DeleteRange(staffs);

            var json = new
            {
                deletedNum = count,
            };

            return(Json(json, JsonRequestBehavior.AllowGet));
        }