Beispiel #1
0
        public void ClearDatabase()
        {
            List <Weapon>   weapons   = mediatorweapon.GetAll();
            List <Warframe> warframes = mediatorwarframe.GetAll();

            for (int i = 1; i <= weapons.Capacity; i++)
            {
                mediatorweapon.DeleteByID(weapons[i].ID);
            }

            for (int i = 1; i <= warframes.Capacity; i++)
            {
                mediatorwarframe.DeleteByID(warframes[i].ID);
            }
        }
Beispiel #2
0
 public ActionResult DeleteConfirmed(int id)
 {
     weapon.DeleteByID(id);
     return(RedirectToAction("Weapons"));
 }