public async Task CreateOrEdit(CreateOrEditSqlConfigDetailDto input)
 {
     if (input.Id == null || input.Id == 0)
     {
         await Create(input);
     }
     else
     {
         await Update(input);
     }
 }
        protected virtual async Task Create(CreateOrEditSqlConfigDetailDto input)
        {
            var sqlConfigDetail = ObjectMapper.Map <SqlConfigDetail>(input);


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


            await _sqlConfigDetailRepository.InsertAsync(sqlConfigDetail);
        }
        protected virtual async Task Update(CreateOrEditSqlConfigDetailDto input)
        {
            var sqlConfigDetail = await _sqlConfigDetailRepository.FirstOrDefaultAsync((int)input.Id);

            ObjectMapper.Map(input, sqlConfigDetail);
        }