public static async Task <Verification> validateSMSVerificationCode(User user) { User tempUser = new User(); tempUser.id = user.id; string route = !String.IsNullOrEmpty(tempUser.id) ? APIRoutes.validateActivationCodeWithUserIdRoute(tempUser.id) : APIRoutes.validateActivationCodeWithExternalIdRoute(tempUser.external_id); SMResponse m = await AsyncClient.post(route, ConstructSMRequest(tempUser)); return(m == null ? null : m.GetVerificationResponseModel()); }