public void TestUserList() { SystemUserService sus = new SystemUserService(); List <SystemUser> list = sus.GetAll(); Assert.IsNotNull(list); foreach (var item in list) { Console.WriteLine(item.UserName); } }
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); } }
/// <summary> /// 返回所有用户列表 /// </summary> /// <returns></returns> public List <SystemUser> GetAllUsers() { return(sus.GetAll()); }
public ActionResult Accounts() { var model = userService.GetAll(); return(View(model)); }