early work on supporting multiple files

This commit is contained in:
Ryan Peters
2023-02-07 12:21:22 -05:00
parent ed90291b93
commit f610664230
6 changed files with 36 additions and 22 deletions

View File

@ -12,9 +12,9 @@ namespace BinaryDad.Notes
this.noteService = noteService;
}
public async Task SaveNote(string content)
public async Task SaveNote(string content, string? noteName)
{
noteService.Save(content);
noteService.Save(content, noteName);
await Clients.Others.SendAsync("updateNote", content);
}