Ejemplo n.º 1
0
 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;
     }
 }
Ejemplo n.º 2
0
 public void UpdateNote(LearnNote note)
 {
     noteRepos.Update(note);
 }
Ejemplo n.º 3
0
 public void SaveNote(LearnNote note)
 {
     noteRepos.Insert(note);
 }