public static void AddAlert(this Controller page, bool r, string message = "") { if (r) { if (string.IsNullOrEmpty(message)) { message = "Cập nhật thông tin thành công"; } page.AddAlertSuccess(message); } else { if (string.IsNullOrEmpty(message)) { message = "Lỗi khi Cập nhật thông tin. Xin vui lòng thử lại"; } page.AddAlertDanger(message); } }