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

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

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