Пример #1
0
        /// <summary>
        /// Posts the specified request.
        /// </summary>
        /// <param name="request">The request.</param>
        public void Post(UpdateItemByNameRating request)
        {
            var pathInfo = PathInfo.Parse(RequestContext.PathInfo);
            var type     = pathInfo.GetArgumentValue <string>(3);

            var task = MarkLike(request.UserId, type, request.Name, request.Likes);

            Task.WaitAll(task);
        }
Пример #2
0
        /// <summary>
        /// Posts the specified request.
        /// </summary>
        /// <param name="request">The request.</param>
        public object Post(UpdateItemByNameRating request)
        {
            var pathInfo = PathInfo.Parse(RequestContext.PathInfo);
            var type     = pathInfo.GetArgumentValue <string>(3);

            var task = MarkLike(request.UserId, type, request.Name, request.Likes);

            return(ToOptimizedResult(task.Result));
        }
        /// <summary>
        /// Posts the specified request.
        /// </summary>
        /// <param name="request">The request.</param>
        public void Post(UpdateItemByNameRating request)
        {
            var pathInfo = PathInfo.Parse(RequestContext.PathInfo);
            var type = pathInfo.GetArgumentValue<string>(3);

            var task = MarkLike(request.UserId, type, request.Name, request.Likes);

            Task.WaitAll(task);
        }