Do you mean you had your iphone fixed at an apple store?
Didnt you check or test it out before you left? They are really good at fixing stuff so just take it back and they will fix it free since you were just there. Be sure to show them exactly what you are talking about, if the phone is turning off then there is definitely something wrong with it. My iphone has never done that ever.