Пример #1
0
        public ActionResult Bid(int id)
        {
            var bid = new BidDTO
            {
                Sum    = lotService.GetLotById(id).BidRate,
                UserId = HttpContext.User.Identity.GetUserId(),
                LotId  = id,
                Date   = DateTime.Now
            };

            bidService.MakeBid(bid);

            return(View("AcceptedBid"));
        }