public virtual async Task OnGetAsync()
        {
            var dto = await _service.GetAsync(Id);

            OriginalFileExtension = Path.GetExtension(dto.FileName);

            Configuration = await _service.GetConfigurationAsync(dto.FileContainerName, dto.OwnerUserId);
        }
예제 #2
0
 public virtual async Task OnGetAsync()
 {
     if (ParentId.HasValue)
     {
         CurrentDirectory = await _service.GetAsync(ParentId.Value);
     }
 }
예제 #3
0
        public virtual async Task OnGetAsync()
        {
            var dto = await _service.GetAsync(Id);

            ViewModel = new MoveFileViewModel
            {
                NewFileName = dto.FileName
            };
        }
예제 #4
0
 public Task <FileInfoDto> GetAsync(Guid id)
 {
     return(_service.GetAsync(id));
 }
예제 #5
0
 public Task <RawFileDto> GetAsync(string name) //TODO: output cache would be good
 {
     return(_fileAppService.GetAsync(name));
 }
예제 #6
0
 public Task <RawFileDto> GetAsync(string name)
 {
     return(_fileAppService.GetAsync(name));
 }
예제 #7
0
        public async Task GetAsync()
        {
            var result = await _fileAppService.GetAsync("de68532388754ffc84fcbd817397461c.jpg");

            result.ShouldNotBeEmpty();
        }
        public virtual async Task OnGetAsync()
        {
            var dto = await _service.GetAsync(Id);

            ViewModel = ObjectMapper.Map <FileInfoDto, RenameFileViewModel>(dto);
        }