// GET: NinjaEquipments/Edit/5
        public ActionResult Edit(int?id, int ninjaId, string name)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            ViewBag.NinjaId   = ninjaId;
            ViewBag.NinjaName = name;
            var ninjaEquipment = _repo.GetEquipmentById(id.Value);

            if (ninjaEquipment == null)
            {
                return(HttpNotFound());
            }
            return(View(ninjaEquipment));
        }