private static async Task SaveNote()

in dotnet/azure-functions/FunctionApp/Notes.cs [156:165]


        private static async Task<Note> SaveNote(string content)
        {
            Note note = new Note
            {
                Id = Guid.NewGuid().ToString(),
                NoteText = content
            };
            ItemResponse<Note> response = await Container.CreateItemAsync(note, new PartitionKey(note.Id));
            return response.StatusCode == System.Net.HttpStatusCode.Created ? note : null;
        }