//public DataTable ViewByDistributer_ID(int DistributerID) //{ // objTaxesDAL = new Taxes_DAL(objCompanyProperty); // return objTaxesDAL.SelectByDistributerID(DistributerID); //} public DataTable ViewAll(string xmlpath) { // load your xml file (this one is named people and it is in my App_Data folder) XElement x = XElement.Load(xmlpath);//get your file // declare a new DataTable and pass your XElement to it objTaxesDAL = new Taxes_DAL(objTaxesProperty); return(objTaxesDAL.XElementToDataTable(x)); }
public bool Delete(int?id) { objTaxesDAL = new Taxes_DAL(objTaxesProperty); return(objTaxesDAL.Delete(id)); }
public bool Update() { objTaxesDAL = new Taxes_DAL(objTaxesProperty); return(objTaxesDAL.Update()); }
public bool Insert() { objTaxesDAL = new Taxes_DAL(objTaxesProperty); return(objTaxesDAL.Insert()); }
public DataTable GetById() { objTaxesDAL = new Taxes_DAL(objTaxesProperty); return(objTaxesDAL.SelectById()); }
//public DataTable MainBranch() //{ // objTaxesDAL = new Taxes_DAL(objTaxesProperty); // return objTaxesDAL.SelectAllMainBranch(); //} public DataTable GetTaxesForCheckBox() { objTaxesDAL = new Taxes_DAL(objTaxesProperty); return(objTaxesDAL.SelectAllTaxesForCheckBox()); }
public DataTable ViewAll() { objTaxesDAL = new Taxes_DAL(objTaxesProperty); return(objTaxesDAL.SelectAll()); }