public HttpResponseMessage EditIncomeAccountMISOverrideApproval(HttpRequestMessage request, [FromBody] string[] selectedIds2) { return(GetHttpResponse(request, () => { //IncomeAccountMISOverrideTEMPStatus Obj = new IncomeAccountMISOverrideTEMPStatus(); //string selectedIds = String.Join(",", selectedIds2); //Obj.EditIncomeAccountMISOverrideApproval(selectedIds); //int counter = 1; IncomeAccountMISOverrideTEMPStatus Obj = new IncomeAccountMISOverrideTEMPStatus(); 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.EditIncomeAccountMISOverrideApproval(selectedIds); } return request.CreateResponse(HttpStatusCode.OK); })); }
public HttpResponseMessage TeamUsingParamsApproved(HttpRequestMessage request, string search) { return(GetHttpResponse(request, () => { string approvalstatus = "APPROVED"; IncomeAccountMISOverrideTEMPStatus obj = new IncomeAccountMISOverrideTEMPStatus(); var ddb = obj.IncomeAccountMISOverrideTEMPusingparams(approvalstatus, search); return request.CreateResponse(HttpStatusCode.OK, ddb); })); }
public HttpResponseMessage IncomeAccountMISOverrideApproved(HttpRequestMessage request) { return(GetHttpResponse(request, () => { string approvalstatus = "APPROVED"; IncomeAccountMISOverrideTEMPStatus obj = new IncomeAccountMISOverrideTEMPStatus(); var ddb = obj.IncomeAccountMISOverrideTEMP(approvalstatus); return request.CreateResponse(HttpStatusCode.OK, ddb); })); }
public HttpResponseMessage IncomeOtherBreakdownTEMPusingparamsDECLINED(HttpRequestMessage request, string search) { return(GetHttpResponse(request, () => { string approvalstatus = "DECLINED"; IncomeAccountMISOverrideTEMPStatus obj = new IncomeAccountMISOverrideTEMPStatus(); var ddb = obj.IncomeAccountMISOverrideTEMPusingparams(approvalstatus, search); return request.CreateResponse(HttpStatusCode.OK, ddb); })); }
public HttpResponseMessage EditIncomeAccountMISOverrideDecline(HttpRequestMessage request, [FromBody] string[] selectedIds2) { return(GetHttpResponse(request, () => { //IncomeAccountMISOverrideTEMPStatus tObj = new IncomeAccountMISOverrideTEMPStatus(); //string selectedIds = String.Join(",", selectedIds2); //tObj.EditIncomeAccountMISOverrideDecline(selectedIds); IncomeAccountMISOverrideTEMPStatus Obj = new IncomeAccountMISOverrideTEMPStatus(); foreach (var batch in selectedIds2.Batch(2000)) { string selectedIds = String.Join(",", batch); Obj.EditIncomeAccountMISOverrideDecline(selectedIds); } return request.CreateResponse(HttpStatusCode.OK); })); }