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.Messages;
using Grand.Infrastructure.Mapper;
using Grand.Web.AdminShared.Models.Messages;
namespace Grand.Web.AdminShared.Extensions.Mapping;
public static class QueuedEmailMappingExtensions
{
public static QueuedEmailModel ToModel(this QueuedEmail entity)
{
return entity.MapTo<QueuedEmail, QueuedEmailModel>();
}
public static QueuedEmail ToEntity(this QueuedEmailModel model)
{
return model.MapTo<QueuedEmailModel, QueuedEmail>();
}
public static QueuedEmail ToEntity(this QueuedEmailModel model, QueuedEmail destination)
{
return model.MapTo(destination);
}
}