Exemplo n.º 1
0
        public void UpdateItemCategory(ItemCategoryDTO itemCategoryDTO)
        {
            ItemCategory itemCategory = new ItemCategory();

            ItemConvertor.ConvertToItemCategoryEntity(ref itemCategory, itemCategoryDTO, true);
            unitOfWork.ItemRepository.Update(itemCategory);
        }
Exemplo n.º 2
0
        public void AddItemCategory(ItemCategoryDTO itemDTO)
        {
            ItemCategory itemCategory = new ItemCategory();

            ItemConvertor.ConvertToItemCategoryEntity(ref itemCategory, itemDTO, false);
            unitOfWork.ItemRepository.Add(itemCategory);
        }