Example #1
0
        public Response CreateAudioEffect(AudioEffect audioEffect)
        {
            response = responseFactory.CreateAudioEffectResponse();

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

            magmaDbContext.SaveChanges();

            return(responseFactory.UpdateResponse(response, "Success: created audio effect", ResponseStatus.OK));
        }
Example #2
0
        public Response CreateTrack(Track track)
        {
            response = responseFactory.CreateTrackResponse();

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

            magmaDbContext.SaveChanges();

            return(responseFactory.UpdateResponse(response, "Success: created track", ResponseStatus.OK));
        }
        public Response CreatePlugin(Plugin plugin)
        {
            response = responseFactory.CreatePluginResponse();

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

            magmaDbContext.SaveChanges();

            return(responseFactory.UpdateResponse(response, "Success: created plugin", ResponseStatus.OK));
        }
        public Response CreateUser(User user)
        {
            response = responseFactory.CreateUserResponse();

            response.user.id = magmaDbContext.Add <User>(user).Entity.id;

            magmaDbContext.SaveChanges();

            return(responseFactory.UpdateResponse(response, "Success: created user", ResponseStatus.OK));
        }
Example #5
0
        public Response CreateSynthesizer(Synthesizer synthesizer)
        {
            response = responseFactory.CreateSynthesizerResponse();

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

            magmaDbContext.SaveChanges();

            return(responseFactory.UpdateResponse(response, "Success: created synthesizer", ResponseStatus.OK));
        }
Example #6
0
        public Response CreateSampler(Sampler sampler)
        {
            response = responseFactory.CreateSamplerResponse();

            response.plugin.id = magmaDbContext.Add <Sampler>(sampler).Entity.id;

            magmaDbContext.SaveChanges();

            return(responseFactory.UpdateResponse(response, "Success: created sampler", ResponseStatus.OK));
        }
        public Response CreateProject(Project project)
        {
            response = responseFactory.CreateProjectResponse();

            response.project.id = magmaDbContext.Add <Project>(project).Entity.id;

            magmaDbContext.SaveChanges();

            return(responseFactory.UpdateResponse(response, "Success: created project", ResponseStatus.OK));
        }