private void BtnSubmit_Click(object sender, RoutedEventArgs e) { Note note = new Note() { Title = Title.Text, Content = Content.Text, CreatedAt = DateTime.Now, UpdatedAt = DateTime.Now }; noteModel.Insert(note); this.Frame.Navigate(this.GetType()); }