public JsonResult DeleteTransaction(string id)
 {
     try
     {
         db.VT_DeleteTransactionById(Int32.Parse(id));
         return(Json(new { success = true, message = "Xóa giao dịch thành công!" }, JsonRequestBehavior.AllowGet));
     }
     catch (Exception ex)
     {
         help.LogError(ex);
         return(Json(new { success = false, message = "Lỗi xóa giao dịch!" }, JsonRequestBehavior.AllowGet));
     }
 }
Beispiel #2
0
 public JsonResult DeleteTransaction(string id)
 {
     db.VT_DeleteTransactionById(Int32.Parse(id));
     return(Json(new { success = true, message = "Deleted Successfully" }, JsonRequestBehavior.AllowGet));
 }