public async Task OnGetAsync() { var bookDto = await _bookAppService.GetAsync(Id); Book = ObjectMapper.Map <BookDto, CreateUpdateBookDto>(bookDto); }
public async Task <BookDto> GetAsync() { return(await _bookAppService.GetAsync()); }
public virtual async Task OnGetAsync() { var dto = await _service.GetAsync(Id); ViewModel = ObjectMapper.Map <BookDto, CreateEditBookViewModel>(dto); }
public Task <BookDto> GetAsync(Guid id) { return(_bookAppService.GetAsync(id)); }
public virtual Task <BookDto> GetAsync(Guid id) { return(_service.GetAsync(id)); }