Beispiel #1
0
        public IActionResult Delete([FromRoute] int id, ActivityViewModel model)
        {
            var activity = _activityRepository.Get(id);

            if (activity == null)
            {
                return(NotFound());
            }

            _telemetryRepository.Delete(id);

            _activityRepository.Delete(id);

            return(RedirectToAction("/Index"));
        }