public IActionResult DeleteWeapon(string id) { model = new WeaponModel(HttpContext.Session.GetString("dbusername"), HttpContext.Session.GetString("dbpassword")); model.DeleteWeapon(id); return(RedirectToAction("Index")); }