예제 #1
0
        private void btnKaydet_Click(object sender, EventArgs e)
        {
            foreach (DataRow item in dt.Rows)
            {
                switch (item.RowState)
                {
                case DataRowState.Detached:
                    break;

                case DataRowState.Unchanged:
                    break;

                case DataRowState.Added:
                    break;

                case DataRowState.Deleted:
                    break;

                case DataRowState.Modified:
                    ob.OgrenciGuncelle(new OgrenciModel {
                        Ad = item[0].ToString(), Soyad = item[1].ToString(), Numara = item[2].ToString(), TelNo = item[3].ToString()
                    });
                    break;

                default:
                    break;
                }
            }
        }
 public ActionResult OgrenciGuncelle(Ogrenci ogr, int?OgrenciGuncelleme = 0)
 {
     OgrenciBL.OgrenciGuncelle(ogr);
     return(Redirect("/Home/Index"));
 }