public void UpdateItemCategory(ItemCategoryDTO itemCategoryDTO) { ItemCategory itemCategory = new ItemCategory(); ItemConvertor.ConvertToItemCategoryEntity(ref itemCategory, itemCategoryDTO, true); unitOfWork.ItemRepository.Update(itemCategory); }
public void AddItemCategory(ItemCategoryDTO itemDTO) { ItemCategory itemCategory = new ItemCategory(); ItemConvertor.ConvertToItemCategoryEntity(ref itemCategory, itemDTO, false); unitOfWork.ItemRepository.Add(itemCategory); }