public void SaveAnswer(Answer s) { int active = 0; if (s.Active) { active = 1; } client = new SQSAdminServiceClient(); client.Endpoint.Address = new System.ServiceModel.EndpointAddress(CommonVariables.WcfEndpoint); client.SQSAdmin_StudioM_AddEditAnswer(s.QuestionID, s.AnswerID, s.AnswerText, active); client.Close(); }