Ejemplo n.º 1
0
        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);
            }
        }
Ejemplo n.º 2
0
        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));
            }
        }