예제 #1
0
        public virtual async Task <DocumentWithDetailsDto> GetAsync(GetDocumentInput input)
        {
            var project = await _projectRepository.GetAsync(input.ProjectId);

            return(await GetDocumentWithDetailsDto(
                       project,
                       input.Name,
                       input.Version
                       ));
        }
예제 #2
0
        public virtual async Task <DocumentWithDetailsDto> GetAsync(GetDocumentInput input)
        {
            var project = await _projectRepository.GetAsync(input.ProjectId);

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

            return(await GetDocumentWithDetailsDtoAsync(
                       project,
                       input.Name,
                       input.LanguageCode,
                       input.Version
                       ));
        }
예제 #3
0
        public virtual async Task <DocumentWithDetailsDto> GetAsync(GetDocumentInput input)
        {
            var project = await _projectRepository.GetAsync(input.ProjectId);

            var inputVersionStringBuilder = new StringBuilder();

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

            return(await GetDocumentWithDetailsDtoAsync(
                       project,
                       input.Name,
                       input.LanguageCode,
                       input.Version
                       ));
        }
예제 #4
0
 public virtual Task <DocumentWithDetailsDto> GetAsync(GetDocumentInput input)
 {
     return(DocumentAppService.GetAsync(input));
 }