Exemplo n.º 1
0
        public void DeleteTest()
        {
            var repo = new ModifierTypeRepository();

            repo.Delete(2);

            var allSets = repo.SelectAll();

            Assert.AreEqual(4, allSets.Count);
        }
Exemplo n.º 2
0
 public ActionResult Delete(ModifierType ModifierType)
 {
     _repo.Delete(ModifierType.ModifierTypeID);
     TempData[TempDataMessageKey] = "Modifier Type Deleted!";
     return(RedirectToAction("Index"));
 }