예제 #1
0
        public DataResult <User> AddTest(User user)
        {
            User model = new User();

            model.Name = user.Name;
            model.Id   = user.Id;
            return(DataResult <User> .SuccessResult(model, "ok"));
        }
예제 #2
0
        public DataResult <User> AddTest2(List <string> List)
        {
            User model = new User();

            model.Name = List[0].ToString();
            model.Id   = List.Count();
            return(DataResult <User> .SuccessResult(model, "ok"));
        }
예제 #3
0
        public DataResult <User> Test1(string name, int id)
        {
            User model = new User();

            model.Name = name;
            model.Id   = id;
            return(DataResult <User> .SuccessResult(model, "ok"));
        }