public async Task CreateOrEdit(CreateOrEditItemTypeDto input)
 {
     if (input.Id == null)
     {
         await Create(input);
     }
     else
     {
         await Update(input);
     }
 }
        protected virtual async Task Create(CreateOrEditItemTypeDto input)
        {
            var itemType = ObjectMapper.Map <ItemType>(input);


            if (AbpSession.TenantId != null)
            {
                itemType.TenantId = (int?)AbpSession.TenantId;
            }


            await _itemTypeRepository.InsertAsync(itemType);
        }
        protected virtual async Task Update(CreateOrEditItemTypeDto input)
        {
            var itemType = await _itemTypeRepository.FirstOrDefaultAsync((int)input.Id);

            ObjectMapper.Map(input, itemType);
        }