public async Task Add(CategoryDTO AddDTO) { await _mainCategoryRepository.Add(_Mapper.Map <MainCategories>(AddDTO)); await _mainCategoryRepository.Commit(); await _mainCategoryRepository.DisposeAsync(); }
public async Task Add(CategoryDTO AddDTO) { await _mainCategoryRepository.Add(_Mapper.Map <MainCategories>(AddDTO)); await _mainCategoryRepository.Commit(); await _mainCategoryRepository.DisposeAsync(); }