public static Ride CreateNewRide(MemberViewModel model) { return(new Ride { SourceCity = City.CreateNewSourceCity(model), DestinationCity = City.CreateNewDestinationCity(model), AvailableSeatsOffered = model.SelectNumberOfSeats, TimeRideStarted = model.GetStartedDateTime(), TimeRideArrives = model.GetArrivesDateTime(), MemberCarID = model.MemberCarID }); }