Beispiel #1
0
 public BikeRent(BusinessEntities.Rents.BikeRent item)
     : base(item)
 {
     if (item != null)
     {
         this.Created   = item.CreatedUtc;
         this.CreatedBy = new UserRef(item.CreatedBy);
     }
 }
Beispiel #2
0
 public BikeRentListItem(BusinessEntities.Rents.BikeRent item)
 {
     if (item != null)
     {
         this.BikeRentId         = item.BikeRentId;
         this.BikeRentState      = item.BikeRentState;
         this.Bike               = new BikeRef(item.Bike);
         this.User               = new UserRef(item.User);
         this.StartDateUtc       = item.StartDateUtc;
         this.EndDateUtc         = item.EndDateUtc;
         this.PickUpLocation     = item.PickUpLocation;
         this.PickUpLocationName = item.PickUpLocationName;
         this.ReturnLocation     = item.ReturnLocation;
         this.ReturnLocationName = item.ReturnLocationName;
     }
 }