public async Task <ActionResult <InstanceDTO> > PostInstance(int goalId, CreateInstance instanceData) { var instance = await instanceRepository.SaveNewInstance(goalId, instanceData); return(CreatedAtAction("GetInstance", new { instance.Id }, instance)); }