示例#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);
 }