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


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


            await _documentHandlingDetailRepository.InsertAsync(documentHandlingDetail);
        }
        protected virtual async Task Update(CreateOrEditDocumentHandlingDetailDto input)
        {
            var documentHandlingDetail = await _documentHandlingDetailRepository.FirstOrDefaultAsync((int)input.Id);

            ObjectMapper.Map(input, documentHandlingDetail);
        }