Пример #1
0
        public async Task OnGetAsync()
        {
            var bookDto = await _bookAppService.GetAsync(Id);

            Book = ObjectMapper.Map <BookDto, CreateUpdateBookDto>(bookDto);
        }
Пример #2
0
 public async Task <BookDto> GetAsync()
 {
     return(await _bookAppService.GetAsync());
 }
Пример #3
0
        public virtual async Task OnGetAsync()
        {
            var dto = await _service.GetAsync(Id);

            ViewModel = ObjectMapper.Map <BookDto, CreateEditBookViewModel>(dto);
        }
Пример #4
0
 public Task <BookDto> GetAsync(Guid id)
 {
     return(_bookAppService.GetAsync(id));
 }
Пример #5
0
 public virtual Task <BookDto> GetAsync(Guid id)
 {
     return(_service.GetAsync(id));
 }