예제 #1
0
        public async Task <ContactResultDto> CreateAsync(CreateContactDto model)
        {
            var entity = await _factory.MakeAsync(model);

            await _repository.AddAndSaveAsync(entity);

            var result = entity.Adapt <ContactResultDto>();

            return(await Task.FromResult(result));
        }