public ActionResult Delete(string ids) { if (string.IsNullOrEmpty(ids)) { return(Content("please select at least one row")); } //soft delete from database string[] strIds = ids.Split(','); List <int> idList = new List <int>(); foreach (var strId in strIds) { idList.Add(int.Parse(strId)); } ActionInfoService.DeleteListLogical(idList); return(Content("ok")); }