static public BindedProductViewModel MapSingleBindedProduct(CProduct product) { var viewProduct = new BindedProductViewModel { UniqueID = product.UniqueID, Name = product.Name, Category = product.Category, Price = product.Price, Quantity = product.Quantity, }; return(viewProduct); }
static public DetailedProductViewModel MapSingleDetailedProductWithoutTotal(CProduct product) { var viewProduct = new DetailedProductViewModel { UniqueID = product.UniqueID, Name = product.Name, Category = product.Category, Price = product.Price, Quantity = product.Quantity, }; return(viewProduct); }