コード例 #1
0
        private UserListItem CreateUserListItem(MUser_UserSummary aUserSummary)
        {
            var summary = new UserListItem()
            {
                UserId   = aUserSummary.UserId,
                UserName = aUserSummary.UserName
            };

            return(summary);
        }
コード例 #2
0
            public static MUser_UserSummary MUser_UserSummary(AspNetUser dbAspNetUser)
            {
                var userSummary = new MUser_UserSummary()
                {
                    UserId            = dbAspNetUser.Id,
                    UserName          = dbAspNetUser.UserName,
                    Email             = dbAspNetUser.Email,
                    EmailConfirmed    = dbAspNetUser.EmailConfirmed,
                    AccessFailedCount = dbAspNetUser.AccessFailedCount
                };

                return(userSummary);
            }