Exemplo n.º 1
0
        public async Task <IActionResult> DeleteConfirmed(int id)
        {
            var query = await _queries.GetQueryByIdAsync(id);

            await _queries.DeleteQueryAsync(query);

            return(RedirectToAction(nameof(Index)));
        }