示例#1
0
        public object Get(FB_Tasks request)
        {
            ApiUser         hdUser         = request.ApiUser;
            Instance_Config instanceConfig = new Models.Instance_Config(hdUser);

            int projectID = 0;

            if (!int.TryParse(request.project, out projectID))
            {
                throw new HttpError(HttpStatusCode.NotFound, "incorrect project id");
            }

            return(FBTasks.GetFBTasks(instanceConfig, request.page, request.limit, projectID));
        }
示例#2
0
        public object Get(FB_Tasks request)
        {
            ApiUser hdUser = request.ApiUser;
            Instance_Config instanceConfig = new Models.Instance_Config(hdUser);

            int projectID = 0;
            if (!int.TryParse(request.project, out projectID))
            {
                throw new HttpError(HttpStatusCode.NotFound, "incorrect project id");
            }

            return FBTasks.GetFBTasks(instanceConfig, request.page, request.limit, projectID);
        }