public ActionResult APIResponseStatus(Form941SchRRecords form941SchRRecords)
        {
            //Hardcoded values for Sequence
            var responseJson = string.Empty;

            form941SchRRecords.Sequence = "Record1";
            form941SchRRecords.RecordId = null;
            form941SchRRecords.ReturnHeader.ReturnType         = null;
            form941SchRRecords.ReturnHeader.Business.IsEIN     = true;
            form941SchRRecords.ReturnHeader.Business.IsForeign = false;

            if (form941SchRRecords?.ReturnHeader?.ThirdPartyDesignee != null && (!string.IsNullOrEmpty(form941SchRRecords.ReturnHeader.ThirdPartyDesignee.Name) || !string.IsNullOrEmpty(form941SchRRecords.ReturnHeader.ThirdPartyDesignee.Phone) || !string.IsNullOrEmpty(form941SchRRecords.ReturnHeader.ThirdPartyDesignee.PIN)))
            {
                form941SchRRecords.ReturnHeader.IsThirdPartyDesignee = true;
            }

            if (form941SchRRecords?.ReturnHeader?.BusinessStatusDetails != null)
            {
                if (form941SchRRecords.ReturnHeader.BusinessStatusDetails.IsBusinessClosed == false)
                {
                    form941SchRRecords.ReturnHeader.BusinessStatusDetails.BusinessClosedDetails = new BusinessClosedDetails();
                }
                if (form941SchRRecords.ReturnHeader.BusinessStatusDetails.IsBusinessTransferred == false)
                {
                    form941SchRRecords.ReturnHeader.BusinessStatusDetails.BusinessTransferredDetails = new BusinessTransferredDetails();
                }
            }

            var form941SchRResponse   = new Form941SchRCreateReturnResponse();
            var form941SchRReturnList = new Form941SchRCreateReturnRequest {
                Form941SchRRecords = new List <Form941SchRRecords>()
            };

            form941SchRReturnList.Form941SchRRecords.Add(form941SchRRecords);

            // Generate JSON for Form 941SCHR
            var requestJson = JsonConvert.SerializeObject(form941SchRReturnList, Formatting.Indented);

            using (var client = new PublicAPIClient())
            {
                //API URL to Create Form 941SCHR Return
                string requestUri = "Form941SCHR/Create";

                //POST
                APIGenerateAuthHeader.GenerateAuthHeader(client, requestUri, HttpMethod.Post.ToString());

                //Get Response
                var response = client.PostAsJsonAsync(requestUri, form941SchRReturnList).Result;
                if (response != null && response.IsSuccessStatusCode)
                {
                    //Read Response
                    var createResponse = response.Content.ReadAsAsync <Form941SchRCreateReturnResponse>().Result;
                    if (createResponse != null)
                    {
                        responseJson = JsonConvert.SerializeObject(createResponse, Formatting.Indented);
                        //Deserializing JSON (Success Response) to Form941CreateReturnResponse object
                        form941SchRResponse = new JavaScriptSerializer().Deserialize <Form941SchRCreateReturnResponse>(responseJson);
                        if (form941SchRResponse.SubmissionId != null && form941SchRResponse.SubmissionId != Guid.Empty)
                        {
                            //Adding Form941CreateReturnResponse Response to Session
                            APISession.AddForm941SCHRAPIResponse(form941SchRResponse);
                        }
                    }
                }
                else
                {
                    var createResponse = response.Content.ReadAsAsync <Object>().Result;
                    responseJson = JsonConvert.SerializeObject(createResponse, Formatting.Indented);

                    //Deserializing JSON (Error Response) to Form941CreateReturnResponse object
                    form941SchRResponse = new JavaScriptSerializer().Deserialize <Form941SchRCreateReturnResponse>(responseJson);
                }
            }
            return(PartialView(form941SchRResponse));
        }