public async Task <DiscordCommandResult> CreateNoteAsync(string content) { var note = new Note(Context.Author.Id, content, DateTime.Now); await _dbContext.AddAsync(note); await _dbContext.SaveChangesAsync(); return(Response("Note taken!")); }
protected override async ValueTask AfterExecutedAsync() => await _dbContext.SaveChangesAsync();