public async Task <FileResultDto> CreateAsync(CreateFileDto model) { var file = await _factory.MakeAsync(model); await _repository.AddAndSaveAsync(file); return(await Task.FromResult( file.Adapt <FileResultDto>() )); }
public async Task <FileResultDto> CreateAsync(CreateFileDto model) { var file = await _factory.MakeAsync(model); await _repository.AddAndSaveAsync(file); return(await Task.FromResult( file.Adapt <FileResultDto>() )); }