public bool IsBranchNameExists(string name) { if (branchRepo.GetByName(name) == null) { return(false); } return(true); }