public DataResult <User> AddTest(User user) { User model = new User(); model.Name = user.Name; model.Id = user.Id; return(DataResult <User> .SuccessResult(model, "ok")); }
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")); }
public DataResult <User> Test1(string name, int id) { User model = new User(); model.Name = name; model.Id = id; return(DataResult <User> .SuccessResult(model, "ok")); }