public AllReceiptsViewModel GetAll() { var receipts = receiptManager.GetAll(); return(new AllReceiptsViewModel { Receipts = receipts }); }
public void GetData() { dgwProductList.DataSource = productManager.ShowProducts(); dgwOrderList.DataSource = orderManager.ShowOrders(); cbxDeskList.DataSource = deskManager.GetAll(); label12.Text = "Günlük kazanç: " + receiptManager.DailySell(DateTime.Now.ToShortDateString()).ToString() + " TL"; label9.Text = "Giriş yapan kullanıcı: " + UserName; label10.Text = "Tarih: " + DateTime.Now.ToShortDateString(); dgwReceiptList.DataSource = receiptManager.GetAll(); }