Exemple #1
0
 public async Task CreateOrEdit(CreateOrEditWordProcessingDto input)
 {
     if (input.Id == null)
     {
         await Create(input);
     }
     else
     {
         await Update(input);
     }
 }
Exemple #2
0
        protected virtual async Task Create(CreateOrEditWordProcessingDto input)
        {
            var wordProcessing = ObjectMapper.Map <WorkHandling>(input);


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


            await _wordProcessingRepository.InsertAsync(wordProcessing);
        }
Exemple #3
0
        protected virtual async Task Update(CreateOrEditWordProcessingDto input)
        {
            var wordProcessing = await _wordProcessingRepository.FirstOrDefaultAsync((int)input.Id);

            ObjectMapper.Map(input, wordProcessing);
        }