Example #1
0
        public ActionResult FDP_Destroy(int id)
        {
            var hub = _fdpService.FindById(id);

            try
            {
                _fdpService.DeleteFDP(hub);
                return(RedirectToAction("Index"));
            }
            catch (Exception e)
            {
                ModelState.AddModelError("Errors", @"Unable to delete FDP");
            }
            return(RedirectToAction("Index"));
        }