public int GetParentIdByBranchId(int branchId) { DSBranchTableAdapters.BranchTableAdapter helper = new DSBranchTableAdapters.BranchTableAdapter(); return(Convert.ToInt32(helper.GetParentIdByBranchId(branchId).ToString())); }