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

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

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