コード例 #1
0
        public IActionResult Delete(PlatformTypeDeleteViewModel viewModel)
        {
            PlatformType platformType = platformTypeService.GetByID(viewModel.PlatformType.ID);

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

            platformTypeService.Delete(platformType.ID);
            return(RedirectToAction("Index"));
        }
コード例 #2
0
        public ActionResult DeleteConfirmed(PlatformTypeViewModel model)
        {
            _platformTypeService.Delete(model.Id);

            return(RedirectToAction("GetAll"));
        }
コード例 #3
0
        public ActionResult Remove(Guid platformTypeId)
        {
            _platformTypeService.Delete(platformTypeId);

            return(RedirectToAction("GetAll"));
        }