public async Task <ActionResult <InstanceDTO> > GetInstanceById(int id)
        {
            InstanceDTO instance = await instanceRepository.GetInstanceById(id);

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

            return(instance);
        }