public AddPersonAgeResponseType AddPersonAge(AddPersonAgeRequestType request)
        {
            AddPersonAgeResponseType response = new AddPersonAgeResponseType();

            response.Person.Age = request.num1 + response.Person.Age;

            if (response.Person.Age > 60)
                response.IsPersonOlder = true;
            else
                response.IsPersonOlder = false;

            return response;
        }
Esempio n. 2
0
        public AddPersonAgeResponseType AddPersonAge(AddPersonAgeRequestType request)
        {
            AddPersonAgeResponseType response = new AddPersonAgeResponseType();

            response.Person.Age = request.num1 + response.Person.Age;

            if (response.Person.Age > 60)
            {
                response.IsPersonOlder = true;
            }
            else
            {
                response.IsPersonOlder = false;
            }

            return(response);
        }