Exemplo n.º 1
0
 public IActionResult PlaceBid([Bind("ItemId", "BidAmount")] PlaceBidViewModel vm)
 {
     try
     {
         bool notRekt = portalService.PlaceBidint(vm.ItemId, vm.BidAmount);
         return(RedirectToActionPermanent(nameof(Item), "Home", new { id = vm.ItemId }));
     } catch (Exception e)
     {
         return(Content(e.Message));
     }
 }