Exemple #1
0
        public async Task <IActionResult> DeleteConfirmed(int id)
        {
            var plane = await _planeRepository.GetByIdAsync(id);

            await _planeRepository.DeleteAsync(plane);

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