Feature - Customer Zone [beta]
Customers can now see their order history overview + detail
They can also update their password now.
It took a bit longer, because these were my first real DDD-modules. I spend a considerable amount of time ( 2-3 evenings + 1 day) to fine-tune the module architecture.
One of the nice things that was implemented, was using the Agregate ( DDD ) and updating the EF-entity ( = Updating my SQL Database). So only the properties that the Aggregate has were updated in the database.
The code for this is now ridiciously simple and 3 lines long:
public async Task Update(CustomerAggregate customer)
{
var entity = await m_db.Customers.FindAsync(customer.Id.Value);
var updated = m_mapper.Map<CustomerAggregate, Shop.Models.Customer>(customer, entity); //Update the entity with the customer Aggregate values
await m_db.SaveChangesAsync();
}
Bugfixes/enhancements [ Prod ]