Beispiel #1
0
        public void TestUserList()
        {
            SystemUserService sus  = new SystemUserService();
            List <SystemUser> list = sus.GetAll();

            Assert.IsNotNull(list);
            foreach (var item in list)
            {
                Console.WriteLine(item.UserName);
            }
        }
Beispiel #2
0
        public void GetVistList()
        {
            var query = from c in cvs.GetAll()
                        join s in sus.GetAll()
                        on c.VSuperiorId equals s.Id into cs
                        from css in cs.DefaultIfEmpty()
                        select new
            {
                Id   = c.VSuperiorId,
                Name = css.UserName
            };



            Assert.IsNotNull(query);
            foreach (var item in query)
            {
                Console.WriteLine(item.Name);
            }
        }
Beispiel #3
0
 /// <summary>
 /// 返回所有用户列表
 /// </summary>
 /// <returns></returns>
 public List <SystemUser> GetAllUsers()
 {
     return(sus.GetAll());
 }
        public ActionResult Accounts()
        {
            var model = userService.GetAll();

            return(View(model));
        }