Ejemplo n.º 1
0
        public static CategoryUpdateOutputViewModel Map(CategoryUpdateOutputDtoModel category)
        {
            var categoryModel = new CategoryUpdateOutputViewModel
            {
                Id           = category.Id,
                Name         = category.Name,
                ImageAddress = category.ImageAddress,
            };

            return(categoryModel);
        }
Ejemplo n.º 2
0
        public static CategoryUpdateOutputDtoModel Map(Category category)
        {
            var currentCategory = new CategoryUpdateOutputDtoModel
            {
                Id           = category.Id,
                Name         = category.Name,
                ImageAddress = category.ImageAddress,
            };

            return(currentCategory);
        }