private void btnOK_Click(object sender, EventArgs e) { IAuctionManagement manheimAuctionManagement = new AuctionManagement(); manheimAuctionManagement.MarkNote(0, txtNote.Text, SessionVar.CurrentDealer.DealerId, SessionVar.CurrentDealer.DealerId); MessageBox.Show("You have successfully added the note."); Close(); }
private void btnAddToNote_Click(object sender, EventArgs e) { if (!String.IsNullOrEmpty(_vin)) { IAuctionManagement manheimAuctionManagement = new AuctionManagement(); manheimAuctionManagement.MarkNote(0, rbNote.Text, SessionVar.CurrentDealer.DealerId, SessionVar.CurrentDealer.DealerId); MessageBox.Show("You have successfully added the note."); } }
static void Main(string[] args) { AuctionManagement auctionManagement = new AuctionManagement(); LotItemDto dto = new LotItemDto() { LotName = "Продажа самолета 'Boeing 767'", LotDescription = "Продажа", InitialCost = 55000000, CreatedByEmployeeId = 1, LotId = Guid.NewGuid().ToString(), PublishedDate = DateTime.Now }; auctionManagement.OpenLot(dto); }