public static List <Notes> Sync(NoteStore noteStore) { var noteToSyncFromServer = GetDataFromServer(noteStore); var notesToSyncFromClient = noteStore.LstNotes; foreach (var note in notesToSyncFromClient) { dbServer.UpsertNotes(note); } List <Notes> returnList = GetServerDatatoSend(noteToSyncFromServer, notesToSyncFromClient); dbServer.UpdateSyncTimeStamp(noteStore); return(returnList); }