Exemplo n.º 1
0
        private static void AddNote(IApplicationBuilder app)
        {
            app.Run(async context =>
            {
                using (var reader = new StreamReader(context.Request.Body))
                {
                    var result = await _fController.AddNote(await reader.ReadToEndAsync());

                    if (result)
                    {
                        await context.Response.WriteAsync("t");
                    }
                    else
                    {
                        await context.Response.WriteAsync("f");
                    }
                }
            });
        }