Exemplo n.º 1
0
        public async Task <IActionResult> DeleteConfirmed(int id)
        {
            var amigoEntity = await _domainService.GetByIdAsync(id);

            await _domainService.DeleteAsync(amigoEntity);

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