The answer is the same for both. A cake that is too moist or too dry is most likely due to too much or too little dry to wet ingredients ratio. I recommend using a food scale when measuring all ingredients, but especially dry ingredients like flour.