Beispiel #1
0
        public virtual async Task <DocumentWithDetailsDto> GetDefaultAsync(GetDefaultDocumentInput input)
        {
            var project = await _projectRepository.GetAsync(input.ProjectId);

            return(await GetDocumentWithDetailsDto(
                       project,
                       project.DefaultDocumentName,
                       input.Version
                       ));
        }
Beispiel #2
0
        public virtual async Task <DocumentWithDetailsDto> GetDefaultAsync(GetDefaultDocumentInput input)
        {
            var project = await _projectRepository.GetAsync(input.ProjectId);

            input.Version = GetProjectVersionPrefixIfExist(project) + input.Version;

            return(await GetDocumentWithDetailsDtoAsync(
                       project,
                       project.DefaultDocumentName + "." + project.Format,
                       input.LanguageCode,
                       input.Version
                       ));
        }
Beispiel #3
0
        public virtual async Task <DocumentWithDetailsDto> GetDefaultAsync(GetDefaultDocumentInput input)
        {
            var project = await _projectRepository.GetAsync(input.ProjectId);

            var sb = new StringBuilder();

            input.Version = sb.Append(GetProjectVersionPrefixIfExist(project)).Append(input.Version).ToString();

            sb.Clear();

            return(await GetDocumentWithDetailsDtoAsync(
                       project,
                       sb.Append(project.DefaultDocumentName).Append(".").Append(project.Format).ToString(),
                       input.LanguageCode,
                       input.Version
                       ));
        }
Beispiel #4
0
 public virtual Task <DocumentWithDetailsDto> GetDefaultAsync(GetDefaultDocumentInput input)
 {
     return(DocumentAppService.GetDefaultAsync(input));
 }