public ActionResult Delete(string key, string lstArrId) { var msg = new JsonMessage(false, "Xóa dữ liệu thành công !"); try { if (key == Keyapi) { var lstInt = FDIUtils.StringToListInt(lstArrId); var lst = _da.GetListByArrId(lstInt); foreach (var item in lst) { item.IsDeleted = true; } _da.Save(); } } catch (Exception ex) { msg.Erros = true; msg.Message = "Dữ liệu chưa được xóa."; } return(Json(msg, JsonRequestBehavior.AllowGet)); }