Exemple #1
0
        public async Task <IActionResult> DeleteConfirmed(int id)
        {
            var course = await _attractionRepository.GetAttractionByIDWithoutIncludeAndAsNoTracking(id);

            await _attractionRepository.DeleteAttractionAsync(course);

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