public static Round ToDto(this Models.Round round) { return(new Round { Id = round.Id, Name = round.Name, Place = round.Place, DateTime = round.DateTime }); }
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() }); }