Exemple #1
0
        public object EchoModelValues(BindingBehaviorModel model)
        {
            if (!ModelState.IsValid)
            {
                return(HttpBadRequest(ModelState));
            }

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

            return model;
        }