public bool krediKontrol(object _income) { magazaBll magazab = new magazaBll(); magaza _magaza; if (_income != null) { if (_income.ToString() != "-1") { _magaza = magazab.search(Convert.ToInt32(_income)); if (_magaza.magazaTur.turId == 6) { if (Session["unique-site-user"] != null) { kullanici _authority = (kullanici)Session["unique-site-user"]; if (_authority.kredi > 0) { return(true); } else { return(false); } } else { return(false); } } else { return(true); } } else { return(true); } } else { return(true); } }
public int kimdenDondur(object magazaId) { magazaBll mgzBll = new magazaBll(); magazaTurBll mgzTurBll = new magazaTurBll(); int turId = 1; if (magazaId != null) { int gecici = Convert.ToInt32(mgzBll.search(Convert.ToInt32(magazaId)).magazaTurId); turId = Convert.ToInt32(mgzTurBll.search(gecici).turId); } return(turId); }