public IActionResult Remove(int id)
        {
            Elephant elephant = ElephantRepository.Remove(id);

            if (elephant == null)
            {
                return(NotFound());
            }

            return(Ok(elephant));
        }
        public IActionResult GetOne([FromRoute] int id)
        {
            Elephant elephant = ElephantRepository.GetOne(id);

            if (elephant == null)
            {
                return(NotFound());
            }

            return(Ok(elephant));
        }
        public IActionResult Update(int id, JsonPatchDocument <Elephant> jsonPatch)
        {
            Elephant elephant = ElephantRepository.GetOne(id);

            if (elephant == null)
            {
                return(NotFound());
            }

            jsonPatch.ApplyTo(elephant);

            return(Ok(elephant));
        }
        public IActionResult Save(ElephantTargetBinding target)
        {
            Elephant elephant = target.ToElephant();

            return(Ok(ElephantRepository.Save(elephant)));
        }
 public IActionResult GetAll() => Ok(ElephantRepository.GetAll());