Exemple #1
0
        public static BrandViewModel CreateModel(this Brand brand, int ProductsCount = 0)
        {
            var model = new BrandViewModel();

            brand.CopyTo(model, ProductsCount);
            return(model);
        }
Exemple #2
0
        public static BrandViewModel CreateViewModel(this Brand brand)
        {
            var model = new BrandViewModel();

            brand.CopyTo(model);
            return(model);
        }
Exemple #3
0
 public static BrandDTO ToDTO(this Brand brand) => brand?.CopyTo(new BrandDTO());