public static List <UserModel> UsersToUserModels(List <User> users)
 {
     return(users.Select(user => new UserModel()
     {
         Id = user.Id,
         FirstName = user.FirstName,
         LastName = user.LastName,
         Password = user.Password,
         Emails = EmailMapper.EmailsToEmailModels(user.Emails.ToList())
     }).ToList());
 }
 public static UserModel UserToUserModel(User user)
 {
     return(new UserModel()
     {
         Id = user.Id,
         FirstName = user.FirstName,
         LastName = user.LastName,
         Password = user.Password,
         UserName = user.UserName,
         Emails = EmailMapper.EmailsToEmailModels(user.Emails.ToList())
     });
 }