void FillRides(string username) { BunchyServices _BunchyServices = new BunchyServices(); List <RideModel> _RideModel = new List <RideModel>(); _rideModels = _BunchyServices.GetBunches(username); }
List <RideModel> PopulateRides(string username) { BunchyServices _BunchyServices = new BunchyServices(); List <RideModel> _RideModel = new List <RideModel>(); _RideModel = _BunchyServices.GetBunches(username); return(_RideModel); }
RideDetailModel GetRideDetail(string id) { IEnumerable <Account> accounts = AccountStore.Create(this).FindAccountsForService("google"); Account useraccount = accounts.FirstOrDefault(); BunchyServices _BunchyServices = new BunchyServices(); RideDetailModel _RideModel = new RideDetailModel(); _RideModel = _BunchyServices.GetRideDetails(id, useraccount.Username); return(_RideModel); }