public HttpResponseMessage EditPLUploadedDataApproval(HttpRequestMessage request, [FromBody] string[] selectedIds2)
        {
            return(GetHttpResponse(request, () =>
            {
                //IncomeAccountMISOverrideTEMPStatus Obj = new IncomeAccountMISOverrideTEMPStatus();
                //string selectedIds = String.Join(",", selectedIds2);
                //Obj.EditIncomeAccountMISOverrideApproval(selectedIds);

                //int counter = 1;

                PLUploadedDataTEMPStatus Obj = new PLUploadedDataTEMPStatus();
                foreach (var batch in selectedIds2.Batch(2000))
                {
                    //foreach (var eachId in batch)
                    //{
                    //Console.WriteLine("Batch: {0}, Id: {1}", counter, eachId);
                    //}
                    // counter++;

                    string selectedIds = String.Join(",", batch);
                    Obj.EditPLUploadedDataApproval(selectedIds);
                }


                return request.CreateResponse(HttpStatusCode.OK);
            }));
        }
        public HttpResponseMessage PLUploadedDataUsingParamsApproved(HttpRequestMessage request, string search)
        {
            return(GetHttpResponse(request, () =>
            {
                string approvalstatus = "APPROVED";
                PLUploadedDataTEMPStatus obj = new PLUploadedDataTEMPStatus();
                var ddb = obj.PLUploadedDataTEMPusingparams(approvalstatus, search);

                return request.CreateResponse(HttpStatusCode.OK, ddb);
            }));
        }
        public HttpResponseMessage PLUploadedDataAwaiting(HttpRequestMessage request)
        {
            return(GetHttpResponse(request, () =>
            {
                string approvalstatus = "AWAITINGAPPROVAL";
                PLUploadedDataTEMPStatus obj = new PLUploadedDataTEMPStatus();
                var ddb = obj.PLUploadedDataTEMP(approvalstatus);

                return request.CreateResponse(HttpStatusCode.OK, ddb);
            }));
        }
        public HttpResponseMessage PLUploadedDataDECLINED(HttpRequestMessage request)
        {
            return(GetHttpResponse(request, () =>
            {
                string approvalstatus = "DECLINED";
                PLUploadedDataTEMPStatus obj = new PLUploadedDataTEMPStatus();
                var ddb = obj.PLUploadedDataTEMP(approvalstatus);

                return request.CreateResponse(HttpStatusCode.OK, ddb);
            }));
        }
        public HttpResponseMessage EditPLUploadedDataDecline(HttpRequestMessage request, [FromBody] string[] selectedIds2)
        {
            return(GetHttpResponse(request, () =>
            {
                //IncomeAccountMISOverrideTEMPStatus tObj = new IncomeAccountMISOverrideTEMPStatus();
                //string selectedIds = String.Join(",", selectedIds2);
                //tObj.EditIncomeAccountMISOverrideDecline(selectedIds);

                PLUploadedDataTEMPStatus Obj = new PLUploadedDataTEMPStatus();
                foreach (var batch in selectedIds2.Batch(2000))
                {
                    string selectedIds = String.Join(",", batch);
                    Obj.EditPLUploadedDataDecline(selectedIds);
                }

                return request.CreateResponse(HttpStatusCode.OK);
            }));
        }