public void MapRidesToUser(string userID, Rides[] rides) => RideRepoUserId.AddRides(userID, rides); //create MapRidesToUser method public InvoiceDetails GetInvoiceSummary(string userID) => this.CalculateFare(RideRepoUserId.GetRides(userID)); //create method GetInvoiceSummary
public void MapRidesToUser(string userID, Rides[] rides) => RideRepoUserId.AddRides(userID, rides); //create MapRidesToUser method