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.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
using Grand.Domain.Customers;
using Grand.Domain.Shipping;
namespace Grand.Business.Core.Interfaces.Checkout.Shipping;
public interface IShippingMethodService
{
/// <summary>
/// Gets a shipping method
/// </summary>
/// <param name="shippingMethodId">The shipping method identifier</param>
/// <returns>Shipping method</returns>
Task<ShippingMethod> GetShippingMethodById(string shippingMethodId);
/// <summary>
/// Gets all shipping methods
/// </summary>
/// <param name="filterByCountryId">The country identifier to filter by</param>
/// <param name="customer"></param>
/// <param name="storeId">The store identifier to filter by</param>
/// <returns>Shipping methods</returns>
Task<IList<ShippingMethod>> GetAllShippingMethods(string filterByCountryId = "", Customer customer = null, string storeId = "");
/// <summary>
/// Inserts a shipping method
/// </summary>
/// <param name="shippingMethod">Shipping method</param>
Task InsertShippingMethod(ShippingMethod shippingMethod);
/// <summary>
/// Updates the shipping method
/// </summary>
/// <param name="shippingMethod">Shipping method</param>
Task UpdateShippingMethod(ShippingMethod shippingMethod);
/// <summary>
/// Deletes a shipping method
/// </summary>
/// <param name="shippingMethod">The shipping method</param>
Task DeleteShippingMethod(ShippingMethod shippingMethod);
}