예제 #1
0
 public static Disco Build(int id, string nome, Artista artista, Genero genero)
 {
     return(new Disco()
     {
         Nome = nome,
         Preco = DiscoPreco.GetPrice(),
         Artista = artista,
         Genero = genero
     });
 }
예제 #2
0
 public static Disco Build(int generoId, string nome, List <string> artistas)
 {
     return(new Disco()
     {
         DiscoId = 0,
         GeneroId = (GeneroEnum)generoId,
         Nome = nome,
         Preco = DiscoPreco.GetPrice(),
         Artistas = string.Join(", ", artistas)
     });
 }