//public DataTable ViewByDistributer_ID(int DistributerID) //{ // objBranchDAL = new Branch_DAL(objCompanyProperty); // return objBranchDAL.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 objBranchDAL = new Branch_DAL(objBranchProperty); return(objBranchDAL.XElementToDataTable(x)); }
public bool Delete(int?id) { objBranchDAL = new Branch_DAL(objBranchProperty); return(objBranchDAL.Delete(id)); }
public bool Update() { objBranchDAL = new Branch_DAL(objBranchProperty); return(objBranchDAL.Update()); }
public bool Insert() { objBranchDAL = new Branch_DAL(objBranchProperty); return(objBranchDAL.Insert()); }
public DataTable GetById() { objBranchDAL = new Branch_DAL(objBranchProperty); return(objBranchDAL.SelectById()); }
public DataTable MainBranch() { objBranchDAL = new Branch_DAL(objBranchProperty); return(objBranchDAL.SelectAllMainBranch()); }
public DataTable ViewAll() { objBranchDAL = new Branch_DAL(objBranchProperty); return(objBranchDAL.SelectAll()); }