private e.Tournament CreateEntityFromTournament(Tournament t) { if (t == null) { return(null); } e.Tournament result = e.Tournament.CreateTournament(t.Id, t.Name, t.CreateDate); return(result); }
private Tournament CreateTournamentFromEntity(e.Tournament eTournament) { if (eTournament == null) { return(null); } Tournament result = new Tournament() { CreateDate = eTournament.CreateDate, Id = eTournament.Id, Name = eTournament.Name }; return(result); }
private e.Tournament CreateEntityFromTournament(Tournament t) { if (t == null) { return(null); } e.Tournament result = e.Tournament.CreateTournament(t.Id, t.Name, t.CreateDate); //e.Tournament result = new e.Tournament() //{ // CreateDate = t.CreateDate, // Id = t.Id, // Name = t.Name //}; return(result); }