Ejemplo n.º 1
0
 public static Round ToDto(this Models.Round round)
 {
     return(new Round
     {
         Id = round.Id,
         Name = round.Name,
         Place = round.Place,
         DateTime = round.DateTime
     });
 }
Ejemplo n.º 2
0
 public static RoundDetails ToDtoDetails(this Models.Round round)
 {
     return(new RoundDetails
     {
         Id = round.Id,
         Name = round.Name,
         Place = round.Place,
         DateTime = round.DateTime,
         Sheriff = round.Sheriff.ToDtoMember(),
         Members = round.Members
                   .Select(m => m.ToDtoMember())
                   .ToArray()
     });
 }