Exemple #1
0
        public ActionResult TestFb([FromBody] TestDto dto)
        {
            var vrlt = dto.IsValid();

            if (!vrlt.IsVaild)
            {
                return(new ActionResult(false, vrlt.ErrorMembers));
            }
            return(new ActionResult(true, "TestFb"));
        }
Exemple #2
0
        public ActionResult Test2(TestDto dto)
        {
            var vrlt = dto.IsValid();

            if (!vrlt.IsVaild)
            {
                return(new ActionResult(false, vrlt.ErrorMembers));
            }
            return(new ActionResult(true, "OK  Test2"));
        }