예제 #1
0
 public StopOverTypeDTO Get(int id)
 {
     using (CarRentalEntities context = new CarRentalEntities())
     {
         StopOverType stopOverType = context.usp_StopOverType_Get_id(id).FirstOrDefault();
         return(stopOverTypeMapping.MapToStopOverTypeDTO(stopOverType));
     }
 }
예제 #2
0
 public StopOverTypeDTO MapToStopOverTypeDTO(StopOverType stopOverType)
 {
     return(new StopOverTypeDTO
     {
         Id = stopOverType.Id,
         Libelle = stopOverType.Libelle
     });
 }