public HitcherBase GetHitcherBase() { HitcherBase res = new HitcherBase(); res.RideId = RideId; res.UserId = UserId; res.Accepted = Accepted; res.Comments = Comments; return(res); }
public void ReadHitcherBase(HitcherBase hitcher) { if (hitcher.RideId > -1) { RideId = hitcher.RideId; } if (hitcher.UserId > -1) { UserId = hitcher.UserId; } Accepted = hitcher.Accepted; if (!String.IsNullOrEmpty(hitcher.Comments)) { Comments = hitcher.Comments; } }