public static CategoryUpdateOutputViewModel Map(CategoryUpdateOutputDtoModel category) { var categoryModel = new CategoryUpdateOutputViewModel { Id = category.Id, Name = category.Name, ImageAddress = category.ImageAddress, }; return(categoryModel); }
public static CategoryUpdateOutputDtoModel Map(Category category) { var currentCategory = new CategoryUpdateOutputDtoModel { Id = category.Id, Name = category.Name, ImageAddress = category.ImageAddress, }; return(currentCategory); }