public ActionResult AddProduct() { // Init model ProductViewModel fetchedData = null; var config = new MapperConfiguration(cfg => { cfg.CreateMap <ProductViewModel, Product>(); }); IMapper mapper = config.CreateMapper(); Product sensitiveData = mapper.Map <ProductViewModel, Product>(fetchedData); shopBL.AddProduct(sensitiveData); Product fetchedDatas = null; var configs = new MapperConfiguration(cfg => { cfg.CreateMap <Product, ProductViewModel>(); }); IMapper mappers = config.CreateMapper(); ProductViewModel sensitiveDatas = mapper.Map <Product, ProductViewModel>(fetchedDatas); // Add select list of categories to model // Return view with model return(View(sensitiveDatas)); }