private void ConvertOptionalParamsToNonNullable(FieldingPost fielding, FieldingPostStats fieldingStats) { fieldingStats.G = fielding.G; fieldingStats.Gs = fielding.Gs; fieldingStats.InnOuts = fielding.InnOuts; fieldingStats.Po = fielding.Po; fieldingStats.A = fielding.A; fieldingStats.E = fielding.E; fieldingStats.Dp = fielding.Dp; fieldingStats.Tp = fielding.Tp; fieldingStats.Pb = fielding.Pb; fieldingStats.Sb = fielding.Sb; fieldingStats.Cs = fielding.Cs; }
public FieldingPostStats Map(FieldingPost fieldingPost) { var fieldingStats = new FieldingPostStats() { PlayerId = fieldingPost.PlayerId, YearId = fieldingPost.YearId, Round = fieldingPost.Round, TeamId = fieldingPost.TeamId, LgId = fieldingPost.LgId, Pos = fieldingPost.Pos }; ConvertOptionalParamsToNonNullable(fieldingPost, fieldingStats); return(fieldingStats); }