public Uye KullaniciGiris(string kullaniciAdi, string parola) { try { if (string.IsNullOrEmpty(kullaniciAdi.Trim()) || string.IsNullOrEmpty(parola.Trim())) { throw new Exception("Kullanıcı Adı veya Parola Boş Geçilemez."); } //var sifre = new ToPasswordRepository().Md5(parola); var kullanici = _uyeDal.KullaniciGiris(kullaniciAdi, parola); if (kullanici == null) { throw new Exception("Kullanıcı ve Parola Uyuşmuyor."); } else { return(kullanici); } } catch (Exception error) { throw new Exception("Kullanıcı Giriş Hata:" + error.Message); } }