예제 #1
0
 public List <RequestBookingDTO> List(int idUser)
 {
     using (CarRentalEntities context = new CarRentalEntities())
     {
         List <RequestBooking> requestBookings = context.usp_RequestBooking_List_IdUser(idUser).ToList();
         return(requestBookingMapping.MapToListRequestBookingDTO(requestBookings));
     }
 }