コード例 #1
0
        public static AgencyUser GetUser(string userName)
        {
            var db   = new AgencyUserIdentityDbContext();
            var user = db.Users.First(u => u.UserName == userName);

            return(user);
        }
コード例 #2
0
        public static List <AgencyUser> GetUsers()
        {
            var db    = new AgencyUserIdentityDbContext();
            var users = db.Users.ToList();

            return(users);
        }