Esempio n. 1
0
 public IActionResult Index()
 {
     try
     {
         var items = _service.GetUserWishList(User).Select(i => _mapper.Map <WishListItemDto, WishListItemViewModel>(i));
         return(View(items));
     }
     catch (Exception e)
     {
         return(View("Error", new ErrorViewModel
         {
             RequestId = Request.HttpContext.TraceIdentifier,
             Exception = e
         }));
     }
 }