Using AutoMapper to map to and from Sometimes, I need to map from a Domain entity to a ViewModel - to display information.

Other times, I need to map from a ViewModel to a Domain entity - for persistance of data.

Is this kosher or does this code smell?

protected void Application_Start() 
{
    AreaRegistration.RegisterAllAreas();
    MapObjects();
    RegisterGlobalFilters(GlobalFilters.Filters);
    RegisterRoutes(RouteTable.Routes);
}

private void MapObjects()
{
    Mapper.CreateMap&lt;UserModel, User&gt;();

    Mapper.CreateMap&lt;ProductBrandModel, ProductBrand&gt;();
    Mapper.CreateMap&lt;ProductBrand, ProductBrandModel&gt;();

    Mapper.CreateMap&lt;ProductCategoryModel, ProductCategory&gt;();
    Mapper.CreateMap&lt;ProductCategory, ProductCategoryModel&gt;();
}
Mapping to and from domain models and view models is exactly what automapper is designed for.