Exemplo n.º 1
0
        public ActionResult Edit(WeaponViewModel ReturnedWeapon)
        {
            Weapon CreatedWeapon = new Weapon()
            {
                ID       = ReturnedWeapon.ID,
                Name     = ReturnedWeapon.Name,
                Damage   = ReturnedWeapon.Damage,
                Magazine = ReturnedWeapon.Magazine,
                Critical = ReturnedWeapon.Critical,
                Status   = ReturnedWeapon.Status
            };

            weapon.Save(CreatedWeapon);
            return(RedirectToAction("Weapons"));
        }