コード例 #1
0
        public HttpResponseMessage IncomeOtherBreakdownTEMPAWAITING(HttpRequestMessage request)
        {
            return(GetHttpResponse(request, () =>
            {
                string approvalstatus = "AWAITINGAPPROVAL";
                IncomeNewDetailsTEMPStatus obj = new IncomeNewDetailsTEMPStatus();
                var ddb = obj.IncomeNewDetailsTEMP(approvalstatus);

                return request.CreateResponse(HttpStatusCode.OK, ddb);
            }));
        }
コード例 #2
0
        public HttpResponseMessage IncomeOtherBreakdownTEMPusingparamsAPPROVED(HttpRequestMessage request, string search)
        {
            return(GetHttpResponse(request, () =>
            {
                string approvalstatus = "APPROVED";
                IncomeNewDetailsTEMPStatus obj = new IncomeNewDetailsTEMPStatus();
                var ddb = obj.IncomeNewDetailsTEMPusingparams(approvalstatus, search);

                return request.CreateResponse(HttpStatusCode.OK, ddb);
            }));
        }
コード例 #3
0
        public HttpResponseMessage EditIncomeOtherBreakdownTEMPDecline(HttpRequestMessage request, [FromBody] string[] selectedIds2)
        {
            return(GetHttpResponse(request, () =>
            {
                //IncomeNewDetailsTEMPStatus Obj = new IncomeNewDetailsTEMPStatus();
                //string selectedIds = String.Join(",", selectedIds2);
                //Obj.EditIncomeNewDetailsDecline(selectedIds);

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

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