Service for Produit entity

Constructors

Methods

  • Deletes an existing produit.

    Parameters

    • id: number

      The ID to find the produit to delete.

    Returns Promise<void>

    Void.

  • Updates an existing produit.

    Parameters

    • id: number

      The ID to find the produit to update.

    • data: Partial<Produit>

      The data to update the produit with.

    Returns Promise<null | Produit>

    The updated produit.