public void AddBidding(Paper paper, BidEnum bidenum, User user) { bidRepo.Save(new Bid(user, bidenum, paper)); }
public Bid(User usr, BidEnum bid, Paper paper) { this.User = usr; this.BID = bid; this.Paper = paper; }
public Bid() { this.User = null; this.BID = BidEnum.NULL; this.Paper = null; }
public void AddBidding(Paper paper, string bidEnum, User currentUser) { BidEnum bide = (BidEnum)Enum.Parse(typeof(BidEnum), bidEnum); server.AddBidding(paper, bide, currentUser); }