private async Task QueryDetail(string id) { UserContentProvider user = new UserContentProvider(); NoteDetail = await user.QueryNoteDetail(id, GlobalValue.CurrentUserContext.UserId, GlobalValue.CurrentUserContext.MobileToken); Untils.WriteNoteDetial(NoteDetail); }
private async void QueryDetail(string id) { var temp = Untils.ReadNoteDetial(id); if (temp == null) { UserContentProvider user = new UserContentProvider(); NoteDetail = await user.QueryNoteDetail(id, GlobalValue.CurrentUserContext.UserId, GlobalValue.CurrentUserContext.MobileToken); Untils.WriteNoteDetial(NoteDetail); } else { NoteDetail = temp; } }