Пример #1
0
        public async Task <FileResultDto> CreateAsync(CreateFileDto model)
        {
            var file = await _factory.MakeAsync(model);

            await _repository.AddAndSaveAsync(file);

            return(await Task.FromResult(
                       file.Adapt <FileResultDto>()
                       ));
        }