public void DeleteTest() { var repo = new ModifierTypeRepository(); repo.Delete(2); var allSets = repo.SelectAll(); Assert.AreEqual(4, allSets.Count); }
public ActionResult Delete(ModifierType ModifierType) { _repo.Delete(ModifierType.ModifierTypeID); TempData[TempDataMessageKey] = "Modifier Type Deleted!"; return(RedirectToAction("Index")); }