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


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


            await _incidentUpdateRepository.InsertAsync(incidentUpdate);
        }
        protected virtual async Task Update(CreateOrEditIncidentUpdateDto input)
        {
            var incidentUpdate = await _incidentUpdateRepository.FirstOrDefaultAsync((int)input.Id);

            ObjectMapper.Map(input, incidentUpdate);
        }