public static List <User> UsersModelsToUsers(List <UserModel> users)
 {
     return(users.Select(user => new User()
     {
         Id = user.Id,
         FirstName = user.FirstName,
         LastName = user.LastName,
         Password = user.Password,
         UserName = user.UserName,
         Notes = NoteMapper.NotesModelsToNotes(user.Notes.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,
         Notes = NoteMapper.NotesModelsToNotes(user.Notes.ToList())
     });
 }