Service for Flacon entity

Constructors

Methods

  • Finds a flacon by its ID.

    Parameters

    • id: number

      The ID to find the flacon.

    Returns Promise<null | Flacon>

    The found flacon.

  • Deletes an existing flacon.

    Parameters

    • id: number

      The ID to find the flacon to delete.

    Returns Promise<void>

    Void.

  • Updates an existing flacon.

    Parameters

    • id: number

      The ID to find the flacon to update.

    • data: Partial<Flacon>

      The data to update the flacon with.

    Returns Promise<null | Flacon>

    The updated flacon.