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