public ActionResult List() { var manager = new NoteManager(); var model = manager.GetAll(); return(PartialView(model)); }
public void ShowAllData() { dataGridView1.DataSource = noteManager.GetAll(); dataGridView1.Columns[0].Visible = false; dataGridView1.Columns[2].Visible = false; dataGridView1.Columns[3].Visible = false; lblDate.Text = "Tarih : " + DateTime.Now.ToShortDateString(); }
public ActionResult Save(Note note) { var manager = new NoteManager(); manager.Save(note); var model = manager.GetAll(); return(PartialView("List", model)); }
void GetAll() { dgvNoteList.DataSource = noteManager.GetAll().Select(x => new { BitisTarihi = x.FinishDate, Baslık = x.Tittle, Aciklama = x.Description, Tutar = x.PaymentAmount }).ToList(); }