public IActionResult DeclineBid(int bidID)
        {
            Guid userID = userService.GetUserID(HttpContext.User.Identity.Name);

            (int productid, DatabaseCode result) = bidService.DeclineBid(bidID, userID);
            if (result == DatabaseCode.Updated)
            {
                SetMessage(new MessageViewModel()
                {
                    Message = "Bid has been declined and the contractor has been notified."
                });
            }
            else if (result == DatabaseCode.NotAllowed)
            {
                SetMessage(new MessageViewModel()
                {
                    Message = "You cannot decline a bid for a product you didn't make. This has been logged."
                });
            }
            else
            {
                SetMessage(new MessageViewModel()
                {
                    Message = "Sorry but an error has occured."
                });
            }
            return(RedirectToAction("View", "Product", new { productid }));
        }