protected virtual async Task Create(CreateOrEditDiseaseDto input) { var disease = ObjectMapper.Map <Disease>(input); if (AbpSession.TenantId != null) { disease.TenantId = (int?)AbpSession.TenantId; } var id = await _diseaseRepository.InsertAndGetIdAsync(disease); await _attachmentFilesAppService.CheckAttachment(AttachmentTypeConsts.DiagnoseTheDisease, input.PersonId + "." + id, input, AttachmentUploadType.add); }
protected virtual async Task Create(CreateOrEditPersonDto input) { var person = ObjectMapper.Map <Person>(input); if (AbpSession.TenantId != null) { person.TenantId = (int?)AbpSession.TenantId; } await _personRepository.InsertAsync(person); await _unitOfWorkManager.Current.SaveChangesAsync(); await _AttachmentFilesAppService.CheckAttachment(AttachmentTypeConsts.IDCardImageID, person.Id + "", input, AttachmentUploadType.add); }