Пример #1
0
        public async Task <IActionResult> DeleteAll()
        {
            using (var db = new AppDb())
            {
                await db.Connection.OpenAsync();

                var query = new MessageQuery(db);
                await query.DeleteAllAsync();

                return(new OkResult());
            }
        }