public JsonResult Update(PosSimDetailView vm)
        {
            GetPosSimRequest request = new GetPosSimRequest();

            request.SimId = vm.SimId;

            ModifyPosSimRequest updateRequest = _posSimService.GetPosSim(request).PosSim.ConvertToModifyPosSimRequest();

            updateRequest.SimId          = vm.SimId;
            updateRequest.SimCode        = vm.SimCode;
            updateRequest.SimPhoneNumber = vm.SimPhoneNumber;
            GetPosStatusSimRequest posStatusSimRequest = new GetPosStatusSimRequest();

            posStatusSimRequest.StatusId = vm.PosStatusSimStatusId;
            updateRequest.PosStatusSim   = _posStatusSimService.GetPosStatusSim(posStatusSimRequest).PosStatusSim;
            updateRequest.AddedDate      = vm.AddedDate;
            GetPosSimProviderRequest posSimProviderRequest = new GetPosSimProviderRequest();

            posSimProviderRequest.SimProviderId = vm.PosSimProviderSimProviderId;
            updateRequest.PosSimProvider        = _posSimProviderService.GetPosSimProvider(posSimProviderRequest).PosSimProvider;

            ModifyPosSimResponse response = _posSimService.ModifyPosSim(updateRequest);

            return(Json(response));
        }
        public JsonResult GetPosSimProvider(System.Int32 id)
        {
            DataTableViewModel data1;

            GetPosSimProviderRequest request = new GetPosSimProviderRequest();

            request.SimProviderId = id;
            DetailPosSimProvider_PosSimProviderDetailView data = _posSimProviderService.GetPosSimProvider(request).PosSimProvider.ConvertToDetailPosSimProvider_PosSimProviderDetailView();

            return(Json(data, JsonRequestBehavior.AllowGet));
        }
        public JsonResult GetDetail(System.Int32 id)
        {
            PosSimProviderDetailView vm      = new PosSimProviderDetailView();
            GetPosSimProviderRequest request = new GetPosSimProviderRequest();

            request.SimProviderId = id;
            GetPosSimProviderResponse response = _posSimProviderService.GetPosSimProvider(request);

            if (response.PosSimProviderFound)
            {
                vm = response.PosSimProvider.ConvertToPosSimProviderDetailView();
            }

            return(Json(vm, JsonRequestBehavior.AllowGet));
        }