示例#1
0
        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();
 }
示例#3
0
        public ActionResult Save(Note note)
        {
            var manager = new NoteManager();

            manager.Save(note);
            var model = manager.GetAll();

            return(PartialView("List", model));
        }
示例#4
0
 void GetAll()
 {
     dgvNoteList.DataSource = noteManager.GetAll().Select(x => new
     {
         BitisTarihi = x.FinishDate,
         Baslık      = x.Tittle,
         Aciklama    = x.Description,
         Tutar       = x.PaymentAmount
     }).ToList();
 }