public IActionResult Delete(int id)
        {
            var isRemoved = _repo.Delete(id);

            if (!isRemoved)
            {
                Response.StatusCode = (int)HttpStatusCode.NotFound;
            }

            return(RedirectToAction("Index"));
        }
        public void RemoveNinja()
        {
            var ninja = _ninjaRepository.GetAll().First(o => o.Name == SelectedNinja.Name);

            if (_ninjaRepository.Delete(ninja))
            {
                NinjaCollection.Remove(NinjaCollection.First(o => o.Id == SelectedNinja.Id));
            }

            UpdateCollection();
        }