Exemplo n.º 1
0
 public BO.AdjacentStation DOtoBOadapter(DO.DO.AdjacentStation adjacent)
 {
     BO.AdjacentStation x = new BO.AdjacentStation();
     x.ID       = adjacent.ID;
     x.Sation1  = adjacent.Station1;
     x.Station2 = adjacent.Station2;
     x.Time     = adjacent.Time;
     x.Distance = adjacent.Distance;
     return(x);
 }
Exemplo n.º 2
0
 public DO.DO.AdjacentStation BOtoDOadapter(BO.AdjacentStation adjacent)
 {
     DO.DO.AdjacentStation x = new DO.DO.AdjacentStation();
     x.ID       = adjacent.ID;
     x.Station1 = adjacent.Sation1;
     x.Station2 = adjacent.Station2;
     x.Time     = adjacent.Time;
     x.Distance = adjacent.Distance;
     return(x);
 }
Exemplo n.º 3
0
 public bool UpdateAdajacent(BO.AdjacentStation adjacent)
 {
     return(DL.UpdateAdajacent(BOtoDOadapter(adjacent)));
 }
Exemplo n.º 4
0
 public bool CreateAdjacentStation(BO.AdjacentStation adjacent)
 {
     DO.DO.AdjacentStation x = BOtoDOadapter(adjacent);
     return(DL.CreateAdjacentStation(x));
 }