Example #1
0
 public static DAL.Rooms GetRoom(DTO.NewFolder1.Room roomdto)
 {
     if (roomdto == null)
     {
         return(null);
     }
     DAL.Rooms room = new DAL.Rooms()
     {
         RoomId   = roomdto.RoomId,
         RoomName = roomdto.RoomName,
         Dairy    = NewFolder1.Dairy.GetListDairyDAL(roomdto.Dairy as List <Dairy>)
     };
     return(room);
 }
Example #2
0
        public static Room GetRoom(DAL.Rooms r)
        {
            if (r == null)
            {
                return(null);
            }
            Room dto = new Room()
            {
                RoomId   = r.RoomId,
                RoomName = r.RoomName,
                Dairy    = NewFolder1.Dairy.GetListDairyDTO(r.Dairy as List <DAL.Dairy>)
            };

            return(dto);
        }