Esempio n. 1
0
        public object EchoModelValues(DataMemberRequiredModel model)
        {
            if (!ModelState.IsValid)
            {
                return(HttpBadRequest(ModelState));
            }

            return(model);
        }
        public object EchoModelValues(DataMemberRequiredModel model)
        {
            if (!ModelState.IsValid)
            {
                return HttpBadRequest(ModelState);
            }

            return model;
        }