public HttpResponseMessage CreateUploadWorkflow(BatchRequestDTO request)
        {
            DateTime start  = DateTime.Now;
            int      userID = int.Parse(Request.Headers.GetValues("userId").FirstOrDefault());

            var result = _IDocService.CreateUploadWorkflow(userID, request);

            ApiLog.Write("CreateUploadWorkflow", start);
            return(Request.CreateResponse(HttpStatusCode.OK, result));
        }
        public HttpResponseMessage UpdateUploadStatus(BatchRequestDTO request)
        {
            DateTime start = DateTime.Now;

            int userID = int.Parse(Request.Headers.GetValues("userId").FirstOrDefault());

            request.UserId = userID;

            var result = _IDocService.UpdateUploadStatus(request);

            if (result == null)
            {
                var createresponse = Request.CreateErrorResponse(HttpStatusCode.NotFound, "Failed to Update");
                throw new HttpResponseException(createresponse);
            }
            ApiLog.Write("UpdateUploadStatus", start);
            return(Request.CreateResponse(HttpStatusCode.OK, result));
        }