public static bool DataSyncActionActionEventUpdate(ActionEventUpdate actionEventUpdate) { try { return(SQLiteDatabase.Instance.DataSyncUpdateActionEvent(actionEventUpdate)); } catch { return(false); } }
public async Task <string> ActionEventUpdate(ActionEventUpdate URequestModel) { string URL = WebAPI.Instance.webLinkActionEventUpdate + "/" + JsonConvert.SerializeObject(URequestModel).ToEncrypt(); var result = await WebAPI.Instance.HttpRequestProcess("GET", URL, null); if (result != null) { return(result.Replace("\"", "").ToDecrypt()); } return(null); }
public bool DataSyncUpdateActionEvent(ActionEventUpdate actionEventUpdate) { try { database.CreateTable <ActionEventUpdate> (); int status = database.Update(actionEventUpdate); if (status == 0) { database.Insert(actionEventUpdate); } return(true); } catch (Exception ex) { return(false); } }