public int GetBranchIdByBranchName(string branchName) { DSBranchTableAdapters.BranchTableAdapter helper = new DSBranchTableAdapters.BranchTableAdapter(); return(Convert.ToInt32(helper.GetBranchIdByBranchName(branchName).ToString())); }