public virtual JsonResult SaveBasicData(int instanceId, ClientFieldData[] additionalData)
        {
            var additionalFields = ClientFieldDataMapper.SetAdditionalFieldForm(additionalData);
            var request          = new SaveBasicDataRequest
            {
                InstanceId     = instanceId,
                AdditionalData = additionalFields
            };

            var response = _vmrService.SaveBasicData(request);

            return(Json(response));
        }
        public virtual JsonResult SubmitInstance(
            int instanceId, int actionType, ClientFieldData[] additionalData)
        {
            var additionalFields = ClientFieldDataMapper.SetAdditionalFieldForm(additionalData);
            var requestSubmit    = new VmrSubmitRequest
            {
                InstanceId     = instanceId,
                ActionType     = actionType,
                Mode           = SubmitType.MANUAL,
                AdditionalData = additionalFields
            };
            var response = _vmrGenericService.SubmitInstance(requestSubmit);

            return(Json(response));
        }