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