public IEnumerable <MusicalProjectInstrument> GetByMusicalProject(int musicalProjectId) { MusicalProjectInstrumentRepository musicalProjectInstrumentRepository = new MusicalProjectInstrumentRepository(); IEnumerable <MusicalProjectInstrument> retorno = musicalProjectInstrumentRepository.GetByMusicalProject(musicalProjectId); return(retorno); }
public MusicalProjectInstrument Create(MusicalProjectInstrument musicalProjectInstrument) { Validate(musicalProjectInstrument); MusicalProjectInstrumentRepository musicalProjectInstrumentRepository = new MusicalProjectInstrumentRepository(); var retorno = musicalProjectInstrumentRepository.Create(musicalProjectInstrument); return(retorno); }