Example #1
0
        public async Task <IActionResult> DeleteModule(int id)
        {
            var target = _reposiotry.GetModule(id);

            if (target != null)
            {
                _reposiotry.DropModule(id);
            }

            return(RedirectToAction("Index", new { id = target.ProjectId }));
        }