USP_IMAGECATEGORY_DELETE

Executes the "Image Category Delete" record operation.

Parameters

Parameter Parameter Type Mode Description
@ID int IN Input parameter indicating the ID of the record being deleted.
@CHANGEAGENTID uniqueidentifier IN Input parameter indicating the ID of the change agent invoking the delete.

Definition

Copy


CREATE procedure dbo.[USP_IMAGECATEGORY_DELETE]
(
  @ID integer,
  @CHANGEAGENTID uniqueidentifier
)
as
  begin
    if dbo.fnIsFolderEmpty(@ID, 2) = 0
      begin
        raiserror('ERR_CATEGORYCONTAINSIMAGES',13,1)
        return 1
      end

    exec dbo.spDelete_SiteFolders @ID, 1

    return 0;
  end