public IActionResult Delete(PlatformTypeDeleteViewModel viewModel) { PlatformType platformType = platformTypeService.GetByID(viewModel.PlatformType.ID); if (platformType == null) { return(NotFound()); } platformTypeService.Delete(platformType.ID); return(RedirectToAction("Index")); }
public ActionResult DeleteConfirmed(PlatformTypeViewModel model) { _platformTypeService.Delete(model.Id); return(RedirectToAction("GetAll")); }
public ActionResult Remove(Guid platformTypeId) { _platformTypeService.Delete(platformTypeId); return(RedirectToAction("GetAll")); }