public async Task <ModuleServiceObject> CreateModuleAsync(ModuleServiceObject moduleServiceObject, CancellationToken token) { await _saveModuleValidationService.Validate(moduleServiceObject, token); var moduleEntity = _mapper.Map <ModuleEntity>(moduleServiceObject); var createdEntity = await _moduleRepository.CreateModuleAsync(moduleEntity, token); return(_mapper.Map <ModuleServiceObject>(createdEntity)); }