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

            dto.LocationId          = dao.LocationId;
            dto.LocationName        = dao.LocationName;
            dto.LocationAddress     = dao.LocationAddress;
            dto.LocationPhoneNumber = dao.LocationPhoneNumber;
            return(dto);
        }
Exemple #2
0
        //toDAO
        public static DAO.Location toDAO(Location dto)
        {
            var dao = new DAO.Location();

            dao.LocationId          = dto.LocationId;
            dao.LocationName        = dto.LocationName;
            dao.LocationAddress     = dto.LocationAddress;
            dao.LocationPhoneNumber = dto.LocationPhoneNumber;
            return(dao);
        }