Repository.Import.MatchImport.ExcelMatch.FromMatch C# (CSharp) Method

FromMatch() public static method

public static FromMatch ( Match match ) : ExcelMatch
match Database.Entities.Match
return ExcelMatch
            public static ExcelMatch FromMatch(Match match)
            {
                var excelMatch = new ExcelMatch();

                if (match == null)
                    return excelMatch;

                excelMatch.MatchId = match.MatchId;
                excelMatch.Navn = match.Navn;
                excelMatch.StartTid = match.StartTid;
                excelMatch.SluttTid = match.SluttTid;
                excelMatch.GeoboxNWLatitude = match.GeoboxNWLatitude;
                excelMatch.GeoboxNWLongitude = match.GeoboxNWLongitude;
                excelMatch.GeoboxSELatitude = match.GeoboxSELatitude;
                excelMatch.GeoboxSELongitude = match.GeoboxSELongitude;

                return excelMatch;
            }
MatchImport.ExcelMatch