public DataTable GetBranchData() { DSBranchTableAdapters.BranchTableAdapter helper = new DSBranchTableAdapters.BranchTableAdapter(); return(helper.GetBranchData()); }
public void InsertNewBranch(int BranchID, int PrarentBranchID, string branchName) { DSBranchTableAdapters.BranchTableAdapter helper = new DSBranchTableAdapters.BranchTableAdapter(); helper.InsertNewBranch(BranchID, PrarentBranchID, branchName); }
public void UpdateBranchName(int branchId, string newBranchName) { DSBranchTableAdapters.BranchTableAdapter helper = new DSBranchTableAdapters.BranchTableAdapter(); helper.UpdateBranchName(newBranchName, branchId); }
public void DeleteByBranchId(int branchID) { DSBranchTableAdapters.BranchTableAdapter helper = new DSBranchTableAdapters.BranchTableAdapter(); helper.DeleteByBranchId(branchID); }
public int GetBranchIdByBranchName(string branchName) { DSBranchTableAdapters.BranchTableAdapter helper = new DSBranchTableAdapters.BranchTableAdapter(); return(Convert.ToInt32(helper.GetBranchIdByBranchName(branchName).ToString())); }
public int GetParentIdByBranchId(int branchId) { DSBranchTableAdapters.BranchTableAdapter helper = new DSBranchTableAdapters.BranchTableAdapter(); return(Convert.ToInt32(helper.GetParentIdByBranchId(branchId).ToString())); }
public DataTable GetBranchByBranchId(int branchId) { DSBranchTableAdapters.BranchTableAdapter helper = new DSBranchTableAdapters.BranchTableAdapter(); return(helper.GetBranchByBranchId(branchId)); }
public DataTable GetChildBranches(int ParentId) { DSBranchTableAdapters.BranchTableAdapter helper = new DSBranchTableAdapters.BranchTableAdapter(); return(helper.GetChildBranches(ParentId)); }