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 User UserModelToUser(UserModel user)
 {
     return(new User()
     {
         Id = user.Id,
         FirstName = user.FirstName,
         LastName = user.LastName,
         Password = user.Password,
         UserName = user.UserName,
         Emails = EmailMapper.EmailModelsToEmails(user.Emails.ToList())
     });
 }