/// <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); }
/// <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); }