Ejemplo n.º 1
0
 public RickRoll AddRickRoll(PlayMeObject playMeObject)
 {
     var rickRoll = new RickRoll
                        {
                            PlayMeObject = playMeObject
                        };
     rickRollDataService.Insert(rickRoll);
     return rickRoll;
 }
Ejemplo n.º 2
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.º 3
0
		public RickRoll AddRickRoll(PlayMeObject playMeObject)
		{
		   return rickRollService.AddRickRoll(playMeObject);
		}