public void Patch(string id, [FromBody] MergePatchMovementLineMvoDto value)
 {
     try {
         MovementLineMvosControllerUtils.SetNullIdOrThrowOnInconsistentIds(id, value);
         _movementLineMvoApplicationService.When(value as IMergePatchMovementLineMvo);
     } catch (Exception ex) { var response = MovementLineMvosControllerUtils.GetErrorHttpResponseMessage(ex); throw new HttpResponseException(response); }
 }
 public void Delete(string id, string commandId, string version, string requesterId = default(string))
 {
     try {
         var value = new DeleteMovementLineMvoDto();
         value.CommandId       = commandId;
         value.RequesterId     = requesterId;
         value.MovementVersion = (long)Convert.ChangeType(version, typeof(long));
         MovementLineMvosControllerUtils.SetNullIdOrThrowOnInconsistentIds(id, value);
         _movementLineMvoApplicationService.When(value as IDeleteMovementLineMvo);
     } catch (Exception ex) { var response = MovementLineMvosControllerUtils.GetErrorHttpResponseMessage(ex); throw new HttpResponseException(response); }
 }
        public void Put(string id, [FromBody] CreateOrMergePatchOrDeleteMovementLineMvoDto value)
        {
            try {
                // ///////////////////////////////
                if (value.MovementVersion != default(long))
                {
                    value.CommandType = CommandType.MergePatch;
                    MovementLineMvosControllerUtils.SetNullIdOrThrowOnInconsistentIds(id, value);
                    _movementLineMvoApplicationService.When(value as IMergePatchMovementLineMvo);
                    return;
                }
                // ///////////////////////////////

                MovementLineMvosControllerUtils.SetNullIdOrThrowOnInconsistentIds(id, value);
                _movementLineMvoApplicationService.When(value as ICreateMovementLineMvo);
            } catch (Exception ex) { var response = MovementLineMvosControllerUtils.GetErrorHttpResponseMessage(ex); throw new HttpResponseException(response); }
        }