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


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


            await _billingEventTypeRepository.InsertAsync(billingEventType);
        }
        protected virtual async Task Update(CreateOrEditBillingEventTypeDto input)
        {
            var billingEventType = await _billingEventTypeRepository.FirstOrDefaultAsync((int)input.Id);

            ObjectMapper.Map(input, billingEventType);
        }