public static SingleMemberListViewModel UserToSingleMemberListViewModel(MembershipUser user) { var viewModel = new SingleMemberListViewModel { IsApproved = user.IsApproved, Id = user.Id, IsLockedOut = user.IsLockedOut, Roles = user.Roles.Select(x => x.RoleName).ToArray(), UserName = user.UserName }; return(viewModel); }
public static SingleMemberListViewModel UserToSingleMemberListViewModel(MembershipUser user) { var viewModel = new SingleMemberListViewModel { Id = user.Id, FirstName = user.FirstName, LastName = user.LastName, FullName = user.LastName + ", " + user.FirstName, City = user.City, State = user.State, Roles = user.Roles.Select(x => x.RoleName).ToArray() }; return(viewModel); }