コード例 #1
0
        public async Task <IActionResult> DeleteConfirmed(int id)
        {
            var trail = await _trailRepository.GetTrailByIDWithoutIncludeAndAsNoTracking(id);

            await _trailRepository.DeleteTrailAsync(trail);

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