public ActionResult listProductDetail() { var productDetail = productDetailService.FindAll(new string[] { "Product", "Color", "Size" }); var ProductsDTO = AutoMapper.Mapper.Map <ICollection <PDetailDTO> >(productDetail); return(PartialView(ProductsDTO)); }