public string UpdateInfoProfileByParamsTools(int _param, int _id, string _infoupdate) { string strResult = ""; switch (_param) { case 1: strResult = dbuser.UpdateInfoSurnameProfile(_id, _infoupdate); break; case 2: strResult = dbuser.UpdateInfoNameProfile(_id, _infoupdate); break; case 3: strResult = dbuser.UpdateLastNameProfile(_id, _infoupdate); break; case 4: strResult = dbuser.UpdatePhoneProfile(_id, _infoupdate); break; case 5: strResult = dbuser.UpdateMailProfile(_id, _infoupdate); break; case 6: strResult = dbuser.UpdateLoginProfile(_id, _infoupdate); break; case 7: strResult = dbuser.UpdatePasswordProfile(_id, _infoupdate); break; case 8: strResult = dbuser.UpdateImageProgile(_id, _infoupdate); break; } return(strResult); }