示例#1
0
        public virtual async Task <ResourceAppointmentDto> CreateAsync(ResourceAppointmentCreateDto input)
        {
            var resourceAppointment = _objectMapper.Map <ResourceAppointmentCreateDto, ResourceAppointment>(input);

            //resourceAppointment.TenantId = CurrentTenant.Id;
            resourceAppointment = await _resourceAppointmentRepository.InsertAsync(resourceAppointment, autoSave : true);

            return(_objectMapper.Map <ResourceAppointment, ResourceAppointmentDto>(resourceAppointment));
        }
示例#2
0
        public async virtual Task <ResourceAppointmentDto> CreateAsync(ResourceAppointmentCreateDto input)
        {
            var created = await _resourceAppointmentAppService.CreateAsync(input);

            return(created);
        }