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"));
        }