public UpdateProfileResponse Process() { var response = new UpdateProfileResponse(); var(status, cookies, requestVerificationToken) = _helperHandler.GetUserCookies(_phoneNumber, _password); if (!status) { return(response.ReturnWithCode(MessageHelper.Message(MessageHelper.Code.UpdateProfileInvalidUser))); } var updateProfileResponseCode = UpdateProfile(cookies, requestVerificationToken); return(response.ReturnWithCode(MessageHelper.Message(updateProfileResponseCode))); }
public LoginHistoryResponse Process() { var response = new LoginHistoryResponse(); var(status, cookies, requestVerificationToken) = _helperHandler.GetUserCookies(_phoneNumber, _password); if (!status) { return(response.ReturnWithCode(MessageHelper.Message(MessageHelper.Code.LoginHistoryInvalidUser))); } var(loginHistoryResponseCode, items) = LoginHistory(cookies); if (loginHistoryResponseCode == MessageHelper.Code.LoginHistorySuccess) { response.Items = items; } return(response.ReturnWithCode(MessageHelper.Message(loginHistoryResponseCode))); }