Example #1
0
        public IActionResult AcceptBid(int bidId, int postId)
        {
            var currentUser = _bidService.GetBidsByPostId(postId).FirstOrDefault(x => x.Id == bidId).AppUser;

            _bidService.AcceptBid(bidId, postId, currentUser);
            return(Redirect("/Client/Home/Index"));
        }