public async Task <ActionResult <Ninja> > DeleteNinja(long id)
        {
            try
            {
                var ninjaToDelete = await ninjaRepository.GetNinja(id);

                if (ninjaToDelete == null)
                {
                    return(NotFound($"Chase with id {id} not found"));
                }

                return(await ninjaRepository.DeleteNinja(id));
            }
            catch (Exception)
            {
                return(StatusCode(StatusCodes.Status500InternalServerError,
                                  "Error deleting data"));
            }
        }