public ShowUserViewModel GetUserForShowByEmail(UserManager <ApplicationUser> userManager, string email) { if (string.IsNullOrWhiteSpace(email)) { return(null); } var user = _adminData.GetUserByEmail(userManager, email); var userRoles = _adminData.GetUserRoles(userManager, user); return(new ShowUserViewModel { FullName = user.FullName, Email = user.Email, LockoutTime = user.LockoutEndDateUtc, AllRoles = string.Join(", ", userRoles), EmploymentDate = user.EmploymentDate }); }