public JsonResult Create(PosStatusTerminalDetailView vm)
        {
            CreatePosStatusTerminalRequest request = new CreatePosStatusTerminalRequest();

            request.StatusName = vm.StatusName;
            CreatePosStatusTerminalResponse response = _posStatusTerminalService.CreatePosStatusTerminal(request);

            return(Json(response));
        }
        public JsonResult Update(PosStatusTerminalDetailView vm)
        {
            GetPosStatusTerminalRequest request = new GetPosStatusTerminalRequest();

            request.TerminalStatusId = vm.TerminalStatusId;

            ModifyPosStatusTerminalRequest updateRequest = _posStatusTerminalService.GetPosStatusTerminal(request).PosStatusTerminal.ConvertToModifyPosStatusTerminalRequest();

            updateRequest.TerminalStatusId = vm.TerminalStatusId;
            updateRequest.StatusName       = vm.StatusName;

            ModifyPosStatusTerminalResponse response = _posStatusTerminalService.ModifyPosStatusTerminal(updateRequest);

            return(Json(response));
        }
        public JsonResult GetDetail(System.Int32 id)
        {
            PosStatusTerminalDetailView vm      = new PosStatusTerminalDetailView();
            GetPosStatusTerminalRequest request = new GetPosStatusTerminalRequest();

            request.TerminalStatusId = id;
            GetPosStatusTerminalResponse response = _posStatusTerminalService.GetPosStatusTerminal(request);

            if (response.PosStatusTerminalFound)
            {
                vm = response.PosStatusTerminal.ConvertToPosStatusTerminalDetailView();
            }

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