Would be nice to capture FirstName and LastName in Customer entity. There are lots of uses for this. One is to welcome the user more personally at login
E.g.
Welcome Back Darren Pegram (not Darren Pegram? click here to logout)
var firstName = customer.GetAttribute<string>( SystemCustomerAttributeNames.FirstName );
var lastName = customer.GetAttribute<string>( SystemCustomerAttributeNames.LastName );
model.CustomerEmailUsername = firstName + " " + lastName ;
var firstName = customer.GetAttribute<string>( SystemCustomerAttributeNames.FirstName );
var lastName = customer.GetAttribute<string>( SystemCustomerAttributeNames.LastName );
model.CustomerEmailUsername = firstName + " " + lastName ;
var firstName = customer.GetAttribute<string>( SystemCustomerAttributeNames.FirstName );
var lastName = customer.GetAttribute<string>( SystemCustomerAttributeNames.LastName );
model.CustomerEmailUsername = firstName + " " + lastName ;
var firstName = customer.GetAttribute<string>( SystemCustomerAttributeNames.FirstName );
var lastName = customer.GetAttribute<string>( SystemCustomerAttributeNames.LastName );
model.CustomerEmailUsername = firstName + " " + lastName ;
var model = new HeaderLinksModel()
{
IsAuthenticated = customer.IsRegistered(),
CustomerEmailUsername = customer.IsRegistered() ? (_customerSettings.UsernamesEnabled ? customer.Username : customer.Email) : "",
ShoppingCartEnabled = _permissionService.Authorize(StandardPermissionProvider.EnableShoppingCart),
ShoppingCartItems = customer.ShoppingCartItems
.Where(sci => sci.ShoppingCartType == ShoppingCartType.ShoppingCart)
.Where(sci => sci.StoreId == _storeContext.CurrentStore.Id)
.ToList()
.GetTotalProducts(),
WishlistEnabled = _permissionService.Authorize(StandardPermissionProvider.EnableWishlist),
WishlistItems = customer.ShoppingCartItems
.Where(sci => sci.ShoppingCartType == ShoppingCartType.Wishlist)
.Where(sci => sci.StoreId == _storeContext.CurrentStore.Id)
.ToList()
.GetTotalProducts(),
AllowPrivateMessages = customer.IsRegistered() && _forumSettings.AllowPrivateMessages,
UnreadPrivateMessages = unreadMessage,
AlertMessage = alertMessage,
};
var firstName = customer.GetAttribute<string>( SystemCustomerAttributeNames.FirstName );
var lastName = customer.GetAttribute<string>( SystemCustomerAttributeNames.LastName );
model.CustomerEmailUsername = firstName + " " + lastName ;
return PartialView(model);