public int UserInfoUpdate(UserInfoUpdateRequest request) { UserLoginRequest userInfoReq = new UserLoginRequest(); userInfoReq.UserName = request.UserName; userInfoReq.PassWord = request.PassWord; UserInfoResponse userInfoRes = UserLogin(userInfoReq); UserInfoRequestModel userInfoModel = AutoMappingUtils.ConvertTo <UserInfoRequestModel>(request); if (userInfoRes != null) { userInfoModel.UID = userInfoRes.UID; userInfoModel.UserNO = userInfoRes.UserNO; userInfoModel.UserName = userInfoRes.UserName; userInfoModel.UserEmail = userInfoRes.UserEmail; userInfoModel.PassWord = request.NewPassWord; return(_userInfoDal.UserInfoUpdate(userInfoModel)); } else { return(0); } }