Beispiel #1
0
        //fromDAO
        public static Order fromDAO(DAO.Order dao)
        {
            var dto = new Order();

            dto.LocationId  = dao.LocationId;
            dto.OrderId     = dao.OrderId;
            dto.OrderOwner  = dao.OrderOwner;
            dto.OrderStatus = dao.OrderStatus;
            dto.OrderTime   = dao.OrderTime;
            dto.OrderPrice  = dao.OrderPrice;
            return(dto);
        }
Beispiel #2
0
        //toDAO
        public static DAO.Order toDAO(Order dto)
        {
            var dao = new DAO.Order();

            dao.LocationId  = dto.LocationId;
            dao.OrderId     = dto.OrderId;
            dao.OrderOwner  = dto.OrderOwner;
            dao.OrderStatus = dto.OrderStatus;
            dao.OrderTime   = dto.OrderTime;
            dao.OrderPrice  = dto.OrderPrice;
            return(dao);
        }