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.Business.Core.Utilities.Customers;
using Grand.Domain.Customers;
namespace Grand.Business.Core.Interfaces.Customers;
/// <summary>
/// Customer manager interface
/// </summary>
public interface ICustomerManagerService
{
/// <summary>
/// Login customer
/// </summary>
/// <param name="usernameOrEmail">Username or email</param>
/// <param name="password">Password</param>
/// <param name="storeId">Store identifier - used to resolve the customer when per-store customer identity is enabled</param>
/// <returns>Result</returns>
Task<CustomerLoginResults> LoginCustomer(string usernameOrEmail, string password, string storeId = "");
/// <summary>
/// Register customer
/// </summary>
/// <param name="request">Request</param>
Task RegisterCustomer(RegistrationRequest request);
/// <summary>
/// Password match
/// </summary>
/// <param name="passwordFormat"></param>
/// <param name="oldPassword"></param>
/// <param name="newPassword"></param>
/// <param name="passwordSalt"></param>
/// <returns></returns>
bool PasswordMatch(PasswordFormat passwordFormat, string oldPassword, string newPassword, string passwordSalt);
/// <summary>
/// Change password
/// </summary>
/// <param name="request">Request</param>
/// <param name="storeId">Store identifier - used to resolve the customer when per-store customer identity is enabled</param>
Task ChangePassword(ChangePasswordRequest request, string storeId = "");
}