예제 #1
0
        public Response GetTrackById(int id)
        {
            response = responseFactory.CreateTrackResponse();

            response.track = magmaDbContext.Find <Track>(id);

            return(responseFactory.UpdateResponse(response, "Success: track found", ResponseStatus.OK));
        }
        public Response GetPluginById(int id)
        {
            response = responseFactory.CreatePluginResponse();

            response.plugin = magmaDbContext.Find <Plugin>(id);

            return(responseFactory.UpdateResponse(response, "Success: found plugin", ResponseStatus.OK));
        }
예제 #3
0
        public Response GetAudioEffectById(int id)
        {
            response = responseFactory.CreateAudioEffectResponse();

            response.audioEffect = magmaDbContext.Find <AudioEffect>(id);

            return(responseFactory.UpdateResponse(response, "Success: audio effect found", ResponseStatus.OK));
        }
예제 #4
0
        public Response GetSynthesizerById(int id)
        {
            response = responseFactory.CreateSynthesizerResponse();

            response.synthesizer = magmaDbContext.Find <Synthesizer>(id);

            return(responseFactory.UpdateResponse(response, "Success: synthesizer found", ResponseStatus.OK));
        }