public static PlaceSave Create(PlaceInfoResource place) { return(new PlaceSave() { OwnerId = place.OwnerId, Name = place.Name, Description = place.Description, TicketPrice = place.TicketPrice, Address = place.Address, Lat = place.location["Latitude"], Ltn = place.location["Longitude"], Category = place.Category }); }
public SavePlaceResponse(PlaceInfoResource place) : this(place, String.Empty, false) { }
public SavePlaceResponse(PlaceInfoResource placeInfoResource, string message, bool success) : base(success, message) { PlaceInfoResource = placeInfoResource; }
internal PlaceInfoResponse(Place place) : this(true, String.Empty) { data = new PlaceInfoResource(place); Message = "Operation completed"; }