public IResult Delete(int id) { var value = _adminDal.Get(x => x.Id == id); _adminDal.Delete(value); return(new SuccessResult()); }
public IDataResult <Admin> GetByAdmin(int id) { var result = _adminDal.Get(admin => admin.UserId == id); return(new SuccessDataResult <Admin>(result)); }
public Admin Get(string adminName, string adminPassword) { return(_adminDal.Get(new Admin() { AdminName = adminName, AdminPassword = adminPassword })); }
public Admin GetByID(int id) { var adm = _adminDal.Get(x => x.AdminID == id); adm.AdminUserName = lm.Decrypt(adm.AdminUserName); return(adm); //return _adminDal.Get(x => x.AdminID == id); }
public Admin Get(Expression <Func <Admin, bool> > filter, params string[] includeList) { try { return(adminDal.Get(filter, includeList)); } catch (Exception ex) { throw ex; } }
public Admin Get(Admin admin) { if (admin != null) { Admin loginAdmin = _adminDal.Get(x => x.Username.Equals(admin.Username) && x.Password.Equals(admin.Password)); if (loginAdmin != null) { return(loginAdmin); } } return(null); }
public ActionResult Index(Uye uye, Admin admin) { var kullanici = _uyeDal.Get(x => x.Email == uye.Email && x.Sifre == uye.Sifre); var adminkullanici = _adminDal.Get(x => x.Email == admin.Email && x.Sifre == admin.Sifre); if (kullanici != null) { FormsAuthentication.SetAuthCookie(kullanici.Email, false); return(RedirectToAction("Index", "Profilim")); } if (adminkullanici != null) { //FormsAuthentication.SetAuthCookie(kullanici.Email, false); return(RedirectToAction("Index", "Admin")); } else { return(View()); } }
public IDataResult <Admin> GetAdmin(int adminId) { var model = _adminDal.Get(i => i.Id == adminId); return(new SuccessDataResult <Admin>(model, Messages.Success)); }
public Admin GetAdmin(string username, string password) { return(_adminDal.Get(x => x.AdminUserName == username && x.AdminPassword == password)); }
public Admin GetAdmin(string mail, string password) { return(_adminDal.Get(x => x.AdminUserName == mail && x.AdminPassword == password)); }
public object GetbyAdminUsername(Admin p) { return(_adminDal.Get(x => x.AdminUsername == p.AdminUsername && x.AdminPassword == p.AdminPassword)); }
public Admin Get(Admin admin) { return(_dal.Get(admin)); }
public Admin GetById(int id) { return(_adminDal.Get(a => a.AdminId == id)); }
public Admin Get(Admin admin) { return(_adminDal.Get(x => x.AdminUserName == admin.AdminUserName && x.AdminPassword == admin.AdminPassword)); }
public Admin GetById(int id) { return(_adminDal.Get(x => x.Id == id)); }
public Admin Get(Expression <Func <Admin, bool> > filter = null) { return(_adminDal.Get(filter)); }
public Admin Get(Expression <Func <Admin, bool> > filter) { return(dal.Get(filter)); }
public IDataResult <Admin> GetById(int adminId) { return(new SuccessDataResult <Admin>(_adminDal.Get(a => a.Id == adminId))); }
public bool IsExist(AdminDto admin) { var ad = _adminDal.Get(x => x.AdminUserName == admin.UserName); return(VerifyPasswordHash(admin.Password, ad.PasswordHash, ad.PasswordSalt)); }
public void Delete(int id) { var value = _adminDal.Get(x => x.Id == id); _adminDal.Delete(value); }
public void Delete(int adminId) { var admin = _adminDal.Get(i => i.Id == adminId); _adminDal.Delete(admin); }
public Admin FindByUsernameAndEmail(string username, string email) { return(_adminDal.Get(i => i.Username == username && i.Email == email)); }
public IDataResult <Admin> Get(Expression <Func <Admin, bool> > filter) { return(_adminDal.Get(filter)); }
public Admin Get(Admin entity) { return(_adminDal.Get(p => p.AdminId == entity.AdminId)); }
public Admin GetByID(int id) { return(_adminDal.Get(x => x.AdminID == id)); }
public Admin Get(string kullaniciAdi) { return(_adminDal.Get(x => x.KullaniciAdi == kullaniciAdi)); }