Beispiel #1
0
 public Roundtrip Add(Roundtrip roundtrip)
 {
     if (roundtrip.IsTransient())
     {
         return(_context.Roundtrips
                .Add(roundtrip)
                .Entity);
     }
     else
     {
         return(roundtrip);
     }
 }