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
     });
 }
 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
     });
 }
Exemple #3
0
 public object Json()
 {
     return(new
     {
         Id,
         User = User.Json(),
         Token,
         EndpointARN,
         DateCreated
     });
 }
Exemple #4
0
 public object Json()
 {
     return(new
     {
         Id,
         Title,
         Event,
         Service = Service?.Json(),
         User = User?.Json(),
         DateCreated,
         LastModified
     });
 }
 public object Json()
 {
     return(new
     {
         Id,
         ListingId,
         BookingId,
         User = User?.Json(),
         Title,
         Comments,
         Stars,
         DateCreated
     });
 }
 public object Json()
 {
     return(new
     {
         Id,
         BookingId,
         User = User?.Json(),
         Name,
         Telephone,
         Ratio,
         StatusId,
         Status,
         DateCreated,
         LastModified
     });
 }
 public object Json()
 {
     return(new
     {
         Id,
         User = User?.Json(),
         Booking = Booking?.Json(),
         Title,
         TypeId,
         Type,
         StatusId,
         Status,
         GroupId,
         Group,
         DateCreated
     });
 }
 public object Json()
 {
     return(new
     {
         Id,
         Title,
         User = User?.Json(),
         Booking = Booking?.Json(),
         Amount,
         Credit,
         Debit,
         Reconciled,
         EcoCashReference,
         TypeId,
         Type,
         DateCreated,
         LastModified,
         Deleted,
         Balance
     });
 }