public void GetAllSupliers() { SuplierDropDownList.DataSource = _PurchaseRepository.GetAllSupliers(); SuplierDropDownList.DataTextField = "Name"; SuplierDropDownList.DataValueField = "Id"; SuplierDropDownList.DataBind(); SuplierDropDownList.Items.Insert(0, new System.Web.UI.WebControls.ListItem("Select Supliers", "0")); }