Esempio n. 1
0
        public static GenericResponse <ClassA> ModifyValue(ClassA value, string stringProp0, string stringProp1)
        {
            var response = ResponseFactoryHelper.GetGenericResponse <ClassA>();

            value.StringProp0 = stringProp0;
            value.StringProp1 = stringProp1;

            response.Value = value;

            return(response);
        }
Esempio n. 2
0
        public static GenericResponse <ClassA> GetGenericResponseA(string stringProp0, string stringProp1)
        {
            var response = ResponseFactoryHelper.GetGenericResponse <ClassA>();

            response.Value = new ClassA
            {
                StringProp0 = stringProp0,
                StringProp1 = stringProp1
            };

            return(response);
        }