/// <summary> /// Add subscription to user /// </summary> /// <param name="userSubscription"></param> /// <returns></returns> public HttpResponseMessage Put([FromBody] UserSubscription userSubscription) { var model = new UserService.UserSubscription { SubscriptionId = userSubscription.Subscriptionid, UserId = userSubscription.Userid }; using (var client = new UserServiceClient()) { client.Addsubscription(model); } return(Request.CreateResponse(HttpStatusCode.Created)); }