コード例 #1
0
        private void tlCntrlMusteriGiris_Click(object sender, EventArgs e)
        {
            MusteriLogin MLF = new MusteriLogin();

            MLF.Show();
            this.Hide();
        }
コード例 #2
0
        private void müsteriGirişiToolStripMenuItem_Click(object sender, EventArgs e)
        {
            MusteriLogin musteriLog = new MusteriLogin();

            musteriLog.MdiParent = this;
            musteriLog.Show();
        }
コード例 #3
0
        public ActionResult GirisYap(MusteriLogin model)
        {
            Kullanici kullanici = new Kullanici {
                Eposta = model.EPosta,
                Sifre  = model.Sifre,
            };
            var response = Servis.Kullanici.GirisYap(kullanici);

            if (response.BasariliMi)
            {
                string loginnedValues = string.Format("user;{0};{1}", kullanici.Id, kullanici.Ad + " " + kullanici.Soyad);
                FormsAuthentication.SetAuthCookie(loginnedValues, true);
                return(RedirectToAction("Index", "Home"));
            }
            ModelState.AddModelError("InvalidLogin", "Girmiş oluduğunuz bilgiler yanlıştır..!");
            return(View());
        }