public Response UpdateTrack(Track track) { response = responseFactory.CreateTrackResponse(); response.track.id = magmaDbContext.Update <Track>(track).Entity.id; magmaDbContext.SaveChanges(); return(responseFactory.UpdateResponse(response, "Success: updated track", ResponseStatus.OK)); }
public Response UpdateAudioEffect(AudioEffect audioEffect) { response = responseFactory.CreateAudioEffectResponse(); response.audioEffect.id = magmaDbContext.Update <AudioEffect>(audioEffect).Entity.id; magmaDbContext.SaveChanges(); return(responseFactory.UpdateResponse(response, "Success: updated audio effect", ResponseStatus.OK)); }
public Response UpdatePlugin(Plugin plugin) { response = responseFactory.CreatePluginResponse(); response.plugin.id = magmaDbContext.Update <Plugin>(plugin).Entity.id; magmaDbContext.SaveChanges(); return(responseFactory.UpdateResponse(response, "Success: updated plugin", ResponseStatus.OK)); }
public Response UpdateUser(User user) { response = responseFactory.CreateUserResponse(); response.user.id = magmaDbContext.Update <User>(user).Entity.id; magmaDbContext.SaveChanges(); return(responseFactory.UpdateResponse(response, "Success: updated user", ResponseStatus.OK)); }
public Response UpdateSynthesizer(Synthesizer synthesizer) { response = responseFactory.CreateSynthesizerResponse(); response.synthesizer.id = magmaDbContext.Update <Synthesizer>(synthesizer).Entity.id; magmaDbContext.SaveChanges(); return(responseFactory.UpdateResponse(response, "Success: updated synthesizer", ResponseStatus.OK)); }
public Response UpdateProject(Project project) { response = responseFactory.CreateProjectResponse(); response.project.id = magmaDbContext.Update <Project>(project).Entity.id; magmaDbContext.SaveChanges(); return(responseFactory.UpdateResponse(response, "Success: updated project", ResponseStatus.OK)); }