Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

1.1 KB
Raw Blame
using Widgets.Slider.Domain;

namespace Widgets.Slider.Services;

public interface ISliderService
{
    /// <summary>
    ///     Delete a slider
    /// </summary>
    /// <param name="slide">Slide</param>
    Task DeleteSlider(PictureSlider slide);

    /// <summary>
    ///     Gets all
    /// </summary>
    /// <returns>Picture Sliders</returns>
    Task<IList<PictureSlider>> GetPictureSliders();

    /// <summary>
    ///     Gets by type
    /// </summary>
    /// <returns>Picture Sliders</returns>
    Task<IList<PictureSlider>> GetPictureSliders(SliderType sliderType, string objectEntry = "");

    /// <summary>
    ///     Gets a tax rate
    /// </summary>
    /// <param name="slideId">Slide identifier</param>
    /// <returns>Tax rate</returns>
    Task<PictureSlider> GetById(string slideId);

    /// <summary>
    ///     Inserts a slide
    /// </summary>
    /// <param name="slide">Picture Slider</param>
    Task InsertPictureSlider(PictureSlider slide);

    /// <summary>
    ///     Updates slide
    /// </summary>
    /// <param name="slide">Picture Slider</param>
    Task UpdatePictureSlider(PictureSlider slide);
}