Beispiel #1
0
        public async Task <ActionResult> RequestService(MaintenanceModel RQ)
        {
            ServiceCallDataResponseResult oServiceCall = new ServiceCallDataResponseResult();

            oServiceCall.ServiceCallData.Add(new ServiceCall
            {
                CardCode = RQ.CardCode,
                CardName = RQ.CardName,
                Subject  = RQ.Subject
            });

            ServiceReponse objResponse = await Connector.RequestMaintenance(oServiceCall) as ServiceReponse;

            if (objResponse is ServiceReponse && objResponse.isSuccess && !string.IsNullOrEmpty(objResponse.ReturnNumber))
            {
                RQ.IsRequested   = true;
                RQ.RequestReffNo = objResponse.ReturnNumber;
            }
            return(View(@"~\Views\Maintenance\MaintenanceSummary.cshtml", RQ));
        }
Beispiel #2
0
        public static async Task <ServiceReponse> RequestMaintenance(ServiceCallDataResponseResult RQ)
        {
            ServiceReponse objRentRsp = HttpClientRQHandler.SendRQ <ServiceReponse, ServiceCallDataResponseResult>(RQ, "/ServiceCall");

            return(await Task.FromResult(objRentRsp));
        }