public ActionResult <dynamic> Save(LearnNote note) { try { note.Id = Guid.NewGuid().ToString(); note.NoteTime = DateTime.Now; note.StarCount = 0; note.AuthorId = "88888"; note.AuthorName = "Admin"; _noteService.SaveNote(note); return(Ok(note)); } catch (Exception) { throw; } }
public void UpdateNote(LearnNote note) { noteRepos.Update(note); }
public void SaveNote(LearnNote note) { noteRepos.Insert(note); }