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


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


            await _serviceCategoryRepository.InsertAsync(serviceCategory);
        }
        protected virtual async Task Update(CreateOrEditServiceCategoryDto input)
        {
            var serviceCategory = await _serviceCategoryRepository.FirstOrDefaultAsync((int)input.Id);

            ObjectMapper.Map(input, serviceCategory);
        }