public RickRoll AddRickRoll(PlayMeObject playMeObject) { using (var client = new MusicServiceClient()) { if (!IsUserAdmin()) throw new HttpResponseException(new System.Net.Http.HttpResponseMessage(System.Net.HttpStatusCode.Unauthorized)); return client.AddRickRoll(playMeObject); } }
public RickRoll AddRickRoll(PlayMeObject playMeObject) { using (var client = new MusicServiceClient()) { if (!IsUserSuperAdmin()) { throw new HttpResponseException(new System.Net.Http.HttpResponseMessage(System.Net.HttpStatusCode.Unauthorized)); } return(client.AddRickRoll(playMeObject)); } }