Пример #1
0
        public object Get(Queues request)
        {
            ApiUser hdUser = request.ApiUser;

            return(base.RequestContext.ToOptimizedResultUsingCache(base.Cache, string.Format("urn:{0}:{1}{2}", base.Request.GetBasicAuth(), base.Request.PathInfo.Substring(1), (base.Request.QueryString.Count > 0 ? ":" + base.Request.QueryString.ToString() : "")),
                                                                   new System.TimeSpan(0, 5, 0), () =>
            {
                return request.FilteredResult <UnassignedQueue>(UnassignedQueues.TechQueues(hdUser));
            }));
        }
Пример #2
0
        public object Get(Queues request)
        {
            ApiUser hdUser = request.ApiUser;

            return(UnassignedQueues.TechQueues(hdUser.OrganizationId, hdUser.DepartmentId, hdUser.UserId));
        }