Ejemplo n.º 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);
            }
        }
Ejemplo n.º 2
0
 public ActionResult DeleteConfirmed(int id)
 {
     warframe.DeleteByID(id);
     return(RedirectToAction("Warframes"));
 }