/// <summary>
 /// Mapping method from view model to entity model.
 /// </summary>
 /// <param name="position">Object that will be mapped.</param>
 /// <returns>New mapped object.</returns>
 public static Position MapToPosition(PositionViewModel position)
 {
     return(new Position
     {
         ID = position.ID,
         WhiteIsPlaying = position.WhiteIsPlaying,
         Category = position.Category,
         DateCreated = position.DateCreated,
         Difficulty = position.Difficulty,
         Name = position.Name,
         Description = position.Description,
         PiecePositions = position.PiecePositions,
         Solution = MoveParser.ParseProblemMoves(position.Solution)
     });
 }