예제 #1
0
 public Kullanici GirisYap(string kullaniciAdi, string parola)
 {
     try
     {
         var sifre = new ToPasswordRepository().Md5(parola);
         var user  = _kullaniciDal.GirisYap(kullaniciAdi, sifre);
         if (user == null)
         {
             throw new Exception("Kullanıcı veya Parola Uyuşmuyor.");
         }
         else
         {
             return(user);
         }
     }
     catch (Exception)
     {
         throw new Exception("Kullanıcı Giriş Hatası");
     }
 }