private void sendEmail(RegisterUsers registerUsers, ValidationCodes validationCodes) { System.Net.Http.HttpClient httpClient = new System.Net.Http.HttpClient(); httpClient.BaseAddress = new Uri("http://127.0.0.1:4005"); EmailClient emailClient = new EmailClient(httpClient); emailClient.PostAsync(registerUsers.RegisterUsersEmails.Email, "", "Your register code", validationCodes.IdCode.ToString()); }