Magneto-resistance study of AFe2As2 (A = Sr, Ba) iron-based compounds