public void Patch(string id, [FromBody] MergePatchRolePermissionDto value)
 {
     try {
         RolePermissionsControllerUtils.SetNullIdOrThrowOnInconsistentIds(id, value);
         _rolePermissionApplicationService.When(value as IMergePatchRolePermission);
     } catch (Exception ex) { var response = RolePermissionsControllerUtils.GetErrorHttpResponseMessage(ex); throw new HttpResponseException(response); }
 }
 public void Delete(string id, string commandId, string version, string requesterId = default(string))
 {
     try {
         var value = new DeleteRolePermissionDto();
         value.CommandId   = commandId;
         value.RequesterId = requesterId;
         value.Version     = (long)Convert.ChangeType(version, typeof(long));
         RolePermissionsControllerUtils.SetNullIdOrThrowOnInconsistentIds(id, value);
         _rolePermissionApplicationService.When(value as IDeleteRolePermission);
     } catch (Exception ex) { var response = RolePermissionsControllerUtils.GetErrorHttpResponseMessage(ex); throw new HttpResponseException(response); }
 }