protected void Ekle_Click(object sender, EventArgs e)
        {
            try
            {
                guid = 0;
                if (!string.IsNullOrEmpty(lblId.Text))
                {
                    guid = Convert.ToInt32(lblId.Text);
                }

                if (guid == 0)
                {
                    Cesitler Cesitler = new Cesitler();
                    Cesitler.Aktif = true;
                    Cesitler.Ad    = txtPopupCesit.Text;

                    if (!string.IsNullOrEmpty(txtPopupCesit.Text))
                    {
                        Cesitler.Ad = txtPopupCesit.Text;
                    }
                    else
                    {
                        Cesitler.Ad = null;
                    }

                    CesitlerBLL.Insert(Cesitler);
                }
                else
                {
                    Cesitler Cesitler = CesitlerBLL.SelectWithId(guid);
                    if (Cesitler != null)
                    {
                        Cesitler.Aktif = true;
                        Cesitler.Ad    = txtPopupCesit.Text;
                        if (!string.IsNullOrEmpty(txtPopupCesit.Text))
                        {
                            Cesitler.Ad = txtPopupCesit.Text;
                        }
                        else
                        {
                            Cesitler.Ad = null;
                        }

                        Cesitler.Ad = guid.ToString();

                        CesitlerBLL.Update(Cesitler.Ad, Cesitler);
                    }
                }
            }
            catch (Exception ex)
            { }
        }
Пример #2
0
 public void Update(string p, Cesitler Cesitler)
 {
     throw new NotImplementedException();
 }
Пример #3
0
 public void Insert(Cesitler Cesitler)
 {
     throw new NotImplementedException();
 }