public DeliveryPageMenuItem(DeliveryAttestation entry) : this() { this.entry = entry; this.Id = entry.DeliveryId; this.Title = $"Delivery# {entry.DeliveryId}"; this.Address = $"{entry.Address} {entry.City} {entry.State} {entry.Zipcode}"; this.Timeslot = entry.Timeslot; }
public DeliveryEntity(DeliveryAttestation model) { this.PartitionKey = model.Date; this.Name = model.Name; this.Phone = model.Phone; this.Address = model.Address; this.City = model.City; this.State = model.State; this.Zipcode = model.Zipcode; this.RowKey = model.DeliveryId.ToString(); this.DeliveryStatus = model.DeliveryStatus.ToString(); this.Latitude = model.Latitude; this.Longitude = model.Longitude; this.PhotoUri = model.PhotoUri; this.SignatureUri = model.SignatureUri; this.TruckId = model.TruckId; this.Timeslot = model.Timeslot; this.Barcode = model.Barcode; }