private static void RetrieveAllBranches() { var branches = new Branches(token); var branchlist = branches.GetAllBranches(); // For async use this: // var branchlist = branches.GetAllBranchesAsync(); Console.WriteLine("Branch Locations."); var x = 0; foreach (var branch in branchlist) { Console.WriteLine(); if (x != 0 && x % 20 == 0) { Console.WriteLine("Type any key to retrieve another 20"); Console.ReadLine(); } x++; Console.WriteLine("{0}. {1}", x, branch.Landmark); Console.WriteLine("Address: {0}, {1}", branch.Address, branch.PostalCode); Console.WriteLine("Coordinate: {0}, {1}", branch.Latitude, branch.Longitude); } }
public IEnumerable <RentCarBranch> GetAllBranches() { return(Branches.GetAllBranches()); }// GET all branches in database
public static List <Branches_Info> GetAll() { return(dal_branch.GetAllBranches()); }