Exemple #1
0
        public Entity.Models.Kullanici KullaniciGiris(string kullaniciAdi, string kullaniciSifre)
        {
            try
            {
                if (String.IsNullOrWhiteSpace(kullaniciAdi.Trim()) || String.IsNullOrWhiteSpace(kullaniciAdi.Trim()))
                {
                    throw new Exception("Kullanıcı Adı ve Sifre Boş Geçilemez");
                }

                var sifre = new ToPasswordRepository().Md5(kullaniciSifre);
                Entity.Models.Kullanici kullanici = _kullaniciDal.KullaniciGiris(kullaniciAdi, sifre);

                if (kullanici == null)
                {
                    throw new Exception("Kullanıcı Adı veya Şifre Hatalı");
                }
                else
                {
                    return(kullanici);
                }
            }
            catch (Exception e)
            {
                throw new Exception("Kullanıcı giriş Hata : " + e.Message);
            }
        }
Exemple #2
0
 public int Guncelle(Entity.Models.Kullanici entity)
 {
     return(_kullaniciDal.Guncelle(entity));
 }
Exemple #3
0
 public bool Sil(Entity.Models.Kullanici entity)
 {
     return(_kullaniciDal.Sil(entity));
 }
Exemple #4
0
 public Entity.Models.Kullanici Kaydet(Entity.Models.Kullanici entity)
 {
     return(_kullaniciDal.Kaydet(entity));
 }