package com.bares.service;

import com.bares.service.dto.ComandaDTO;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.Optional;

/**
 * Service Interface for managing Comanda.
 */
public interface ComandaService {

    /**
     * Save a comanda.
     *
     * @param comandaDTO the entity to save
     * @return the persisted entity
     */
    ComandaDTO save(ComandaDTO comandaDTO);

    /**
     * Get all the comandas.
     *
     * @param pageable the pagination information
     * @return the list of entities
     */
    Page<ComandaDTO> findAll(Pageable pageable);


    /**
     * Get the "id" comanda.
     *
     * @param id the id of the entity
     * @return the entity
     */
    Optional<ComandaDTO> findOne(Long id);

    /**
     * Delete the "id" comanda.
     *
     * @param id the id of the entity
     */
    void delete(Long id);
}
