public JsonResult GetPosTerminal(System.Int32 id)
        {
            DataTableViewModel data1;

            GetPosTerminalRequest request = new GetPosTerminalRequest();

            request.TerminalId = id;
            DetailPosTerminal_PosTerminalDetailView data = _posTerminalService.GetPosTerminal(request).PosTerminal.ConvertToDetailPosTerminal_PosTerminalDetailView();

            return(Json(data, JsonRequestBehavior.AllowGet));
        }
Beispiel #2
0
        public JsonResult GetDetail(System.Int32 id)
        {
            PosTerminalDetailView vm      = new PosTerminalDetailView();
            GetPosTerminalRequest request = new GetPosTerminalRequest();

            request.TerminalId = id;
            GetPosTerminalResponse response = _posTerminalService.GetPosTerminal(request);

            if (response.PosTerminalFound)
            {
                vm = response.PosTerminal.ConvertToPosTerminalDetailView();
            }

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