Ejemplo n.º 1
0
        /// <summary>
        /// 添加用户
        /// </summary>
        /// <param name="userManage"></param>
        static void AddUser(IUserManage userManage)
        {
            var user = new User {
                ID = DateTime.Now.Millisecond, Name = "李四", Age = 123
            };
            var result = userManage.AddUser(user).Result;

            Console.WriteLine(result);
        }