public void Edit(CategoryBLModel editedCategory) { var category = _mapper.Map <Category>(editedCategory); _categoryRepository.Edit(category); }
public void Create(CategoryBLModel model) { var category = _mapper.Map <Category>(model); _categoryRepository.Create(category); }