public static async Task <Verification> validateViaSMS(User user) { //sending only the data we need User tempUser = new User(); tempUser.id = user.id; tempUser.phoneNumber = user.phoneNumber; tempUser.message = user.message; string route = !String.IsNullOrEmpty(tempUser.id) ? APIRoutes.sendSMSWithLinkWithUserIdRoute(tempUser.id) : APIRoutes.sendSMSWithLinkWithExternalIdRoute(tempUser.external_id); SMResponse m = await AsyncClient.post(route, ConstructSMRequest(tempUser)); return(m == null ? null : m.GetVerificationResponseModel()); }