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

            dto.LocationId  = dao.LocationId;
            dto.OrderId     = dao.OrderId;
            dto.PhoneNumber = dao.PhoneNumber;
            dto.OrderStatus = dao.OrderStatus;
            dto.OrderTime   = dao.OrderTime;
            dto.OrderPrice  = dao.OrderPrice;
            dto.OrderName   = dao.OrderName;
            dto.PizzaId     = dao.PizzaId;
            return(dto);
        }
Esempio n. 2
0
        //toDAO
        public static DAO.Order toDAO(Order dto)
        {
            var dao = new DAO.Order();

            dao.LocationId  = dto.LocationId;
            dao.OrderId     = dto.OrderId;
            dao.PhoneNumber = dto.PhoneNumber;
            dao.OrderStatus = dto.OrderStatus;
            dao.OrderTime   = dto.OrderTime;
            dao.OrderPrice  = dto.OrderPrice;
            dao.OrderName   = dto.OrderName;
            dao.PizzaId     = dto.PizzaId;
            return(dao);
        }