Ejemplo n.º 1
0
 public object Json()
 {
     return(new
     {
         Id,
         Title,
         ForId,
         For,
         User = User?.Json(),
         Listing = Listing?.Json(),
         Service = Service?.Json(),
         Location,
         Latitude,
         Longitude,
         Destination,
         DestinationLatitude,
         DestinationLongitude,
         Quantity,
         Distance,
         IncludeFuel,
         StartDate,
         EndDate,
         Price,
         AgriShareCommission,
         HireCost,
         FuelCost,
         TransportCost,
         TransportDistance,
         AdditionalInformation,
         TotalVolume,
         StatusId,
         Status,
         DateCreated
     });
 }
Ejemplo n.º 2
0
 public object Json(bool IncludeUser = false)
 {
     return(new
     {
         Id,
         UserId,
         Category = Category?.Json(),
         Title,
         Description,
         Location,
         Latitude,
         Longitude,
         Brand,
         HorsePower,
         Year,
         ConditionId,
         Condition,
         GroupServices,
         AvailableWithoutFuel,
         AvailableWithFuel,
         Photos = Photos?.Select(e => e.JSON()),
         AverageRating,
         RatingCount,
         Services = Services?.Select(e => e.Json()),
         StatusId,
         Status,
         User = IncludeUser ? User?.Json() : null,
         DateCreated,
         LastModified
     });
 }
Ejemplo n.º 3
0
 public object Json()
 {
     return(new
     {
         Id,
         User = User.Json(),
         Token,
         EndpointARN,
         DateCreated
     });
 }
Ejemplo n.º 4
0
 public object Json()
 {
     return(new
     {
         Id,
         Title,
         Event,
         Service = Service?.Json(),
         User = User?.Json(),
         DateCreated,
         LastModified
     });
 }
Ejemplo n.º 5
0
 public object Json()
 {
     return(new
     {
         Id,
         ListingId,
         BookingId,
         User = User?.Json(),
         Title,
         Comments,
         Stars,
         DateCreated
     });
 }
Ejemplo n.º 6
0
 public object Json()
 {
     return(new
     {
         Id,
         BookingId,
         User = User?.Json(),
         Name,
         Telephone,
         Ratio,
         StatusId,
         Status,
         DateCreated,
         LastModified
     });
 }
Ejemplo n.º 7
0
 public object Json()
 {
     return(new
     {
         Id,
         User = User?.Json(),
         Booking = Booking?.Json(),
         Title,
         TypeId,
         Type,
         StatusId,
         Status,
         GroupId,
         Group,
         DateCreated
     });
 }
Ejemplo n.º 8
0
 public object Json()
 {
     return(new
     {
         Id,
         Title,
         User = User?.Json(),
         Booking = Booking?.Json(),
         Amount,
         Credit,
         Debit,
         Reconciled,
         EcoCashReference,
         TypeId,
         Type,
         DateCreated,
         LastModified,
         Deleted,
         Balance
     });
 }