コード例 #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));
        }
コード例 #2
0
        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));
        }