public IActionResult UpdateStatusMail() { var all_log_mail_new = LogSendMailBL.TimMailMoi(app_id); var id_mail = all_log_mail_new.Select(x => x.Id); return(Ok(new DataResponse() { data = id_mail, success = all_log_mail_new.Count > 0, msg = "" })); }
public IActionResult LogSendMail([FromBody] object value) { DataResponse res = new DataResponse(); if (value != null) { var list_log = JsonConvert.DeserializeObject <List <LogSendMail> >(value.ToString()); foreach (var item in list_log) { SetMetaData(item, false); } var count = LogSendMailBL.IndexMany(list_log); res.success = count > 0; } return(Ok(res)); }
public IActionResult AllMail(string status) { long total_recs = 0; string msg = ""; var all_mail = LogSendMailBL.Search(app_id, status, 1, out total_recs, out msg, 9999); if (all_mail.Count > 0) { return(Ok(new DataResponsePaging() { data = all_mail, total = total_recs, msg = "", success = all_mail.Count > 0 })); } else { return(Ok(new DataResponse() { data = null, msg = "Bạn chưa có email nào", success = false })); } }