Exemplo n.º 1
0
        //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));
        }
Exemplo n.º 2
0
 public bool Delete(int?id)
 {
     objBranchDAL = new Branch_DAL(objBranchProperty);
     return(objBranchDAL.Delete(id));
 }
Exemplo n.º 3
0
 public bool Update()
 {
     objBranchDAL = new Branch_DAL(objBranchProperty);
     return(objBranchDAL.Update());
 }
Exemplo n.º 4
0
 public bool Insert()
 {
     objBranchDAL = new Branch_DAL(objBranchProperty);
     return(objBranchDAL.Insert());
 }
Exemplo n.º 5
0
 public DataTable GetById()
 {
     objBranchDAL = new Branch_DAL(objBranchProperty);
     return(objBranchDAL.SelectById());
 }
Exemplo n.º 6
0
 public DataTable MainBranch()
 {
     objBranchDAL = new Branch_DAL(objBranchProperty);
     return(objBranchDAL.SelectAllMainBranch());
 }
Exemplo n.º 7
0
 public DataTable ViewAll()
 {
     objBranchDAL = new Branch_DAL(objBranchProperty);
     return(objBranchDAL.SelectAll());
 }