public MovementConfirmationLineMvoStateCreatedOrMergePatchedOrDeletedDto GetStateEvent(string id, long version)
 {
     try {
         var idObj = MovementConfirmationLineMvosControllerUtils.ParseIdString(id);
         var conv  = new MovementConfirmationLineMvoStateEventDtoConverter();
         var se    = _movementConfirmationLineMvoApplicationService.GetEvent(idObj, version);
         return(se == null ? null : conv.ToMovementConfirmationLineMvoStateEventDto(se));
     } catch (Exception ex) { var response = MovementConfirmationLineMvosControllerUtils.GetErrorHttpResponseMessage(ex); throw new HttpResponseException(response); }
 }
 public IMovementConfirmationLineMvoStateDto Get(string id, string fields = null)
 {
     try {
         var idObj = MovementConfirmationLineMvosControllerUtils.ParseIdString(id);
         var state = _movementConfirmationLineMvoApplicationService.Get(idObj);
         if (state == null)
         {
             return(null);
         }
         var stateDto = new MovementConfirmationLineMvoStateDtoWrapper(state);
         if (String.IsNullOrWhiteSpace(fields))
         {
             stateDto.AllFieldsReturned = true;
         }
         else
         {
             stateDto.ReturnedFieldsString = fields;
         }
         return(stateDto);
     } catch (Exception ex) { var response = MovementConfirmationLineMvosControllerUtils.GetErrorHttpResponseMessage(ex); throw new HttpResponseException(response); }
 }