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); } }
public int Guncelle(Entity.Models.Kullanici entity) { return(_kullaniciDal.Guncelle(entity)); }
public bool Sil(Entity.Models.Kullanici entity) { return(_kullaniciDal.Sil(entity)); }
public Entity.Models.Kullanici Kaydet(Entity.Models.Kullanici entity) { return(_kullaniciDal.Kaydet(entity)); }