Example #1
0
        public object Get()
        {
            var data = (from user in _userManager.All()
                        join userRole in _userRoleManager.All() on user.Id equals userRole.UserId
                        join role in _roleManager.All() on userRole.RoleId equals role.Id
                        select new { user.FirstName, RoleName = role.Name, user.LastName }).ToList();

            Thread.Sleep(10000);

            return(new { Message = "User Login Successful!", IsSuccess = true });
        }