Exemplo n.º 1
0
 public Category CategoryDtoToCategory(CategoryDTO categoryDto)
 {
     return Mapper.Map<CategoryDTO, Category>(categoryDto);
 }
Exemplo n.º 2
0
 public void Edit(CategoryDTO categoryDto)
 {
     var category = CategoryDtoToCategory(categoryDto);
     _repository.Edit(category);
 }
Exemplo n.º 3
0
 public void Add(CategoryDTO categoryDto)
 {
     var category = CategoryDtoToCategory(categoryDto);
     _repository.Add(category);
 }