public OrderDto(OrderEntity orderEntity)
 {
     OrderNumber    = orderEntity.OrderNumber;
     ParkingLotName = orderEntity.ParkingLotName;
     PlateNumber    = orderEntity.PlateNumber;
     CreateTime     = orderEntity.CreateTime;
     ParkingLotDto  = new ParkingLotDto(orderEntity.ParkingLotEntity);
 }
        public override bool Equals(object obj)
        {
            if (!(obj is ParkingLotDto))
            {
                return(false);
            }

            ParkingLotDto other = (ParkingLotDto)obj;

            return(Name == other.Name &&
                   Capacity == other.Capacity &&
                   Locatoin == other.Locatoin &&
                   Cars == other.Cars &&
                   Orders == other.Orders);
        }
 public bool Equals(ParkingLotDto lotA, ParkingLotDto lotB)
 {
     return(lotA.Name == lotB.Name &&
            lotA.Capacity == lotB.Capacity &&
            lotA.Location == lotB.Location);
 }
 public bool Equals(ParkingLotDto other)
 {
     return(Name == other.Name && Capacity == other.Capacity && Location == other.Location);
 }