Ejemplo n.º 1
0
        public async Task <IActionResult> Details(Guid listingId)
        {
            var listing = await _listingService.GetListing(listingId);

            var viewModel = new DetailViewModel();

            viewModel.Populate(listing);
            viewModel.Options = _optionsService.GetListingOptions(listing.ListingId);
            return(View(viewModel));
        }