public async Task Log(string userId, int auctionId, string msg) { AuctionLog log = new AuctionLog() { AuctionId = auctionId, CreatedOn = DateTime.UtcNow, Text = msg, UserId = userId }; await _context.AuctionLog.AddAsync(log); await _context.SaveChangesAsync(); }
public ProductPageHandle(AuctionLog auctionLog) { this.auctionLog = auctionLog; }