public async Task <ActionResult <int> > UpdateNote(int folderId, int noteId, [FromBody] NoteUpdateModel model) => await Execute(async operation => { await noteFolderService.UpdateNote(operation, folderId, noteId, model.ToEntity()); });
public async Task <ActionResult <int> > CreateNote(int folderId, [FromBody] NoteUpdateModel model) => await Execute(async operation => { return(await noteFolderService.CreateNote(operation, folderId, UserId ?? 0, model.ToEntity())); });