using IceCreamShopContracts.BindingModels;
using IceCreamShopContracts.SearchModels;
using IceCreamShopContracts.ViewModels;

namespace IceCreamShopContracts.BusinessLogicsContracts
{
    public interface IComponentLogic
    {
        List<ComponentViewModel>? ReadList(ComponentSearchModel? model);

        ComponentViewModel? ReadElement(ComponentSearchModel model);

        bool Create(ComponentBindingModel model);

        bool Update(ComponentBindingModel model);

        bool Delete(ComponentBindingModel model);
    }
}