Exemplo n.º 1
0
        public ApplicationUser DaoToEntity(UserDao dao)
        {
            ApplicationUser entity = new ApplicationUser
            {
                Id            = dao.Id,
                AccountType   = dao.AccountType,
                Email         = dao.Email,
                FirstName     = dao.FirstName,
                LastName      = dao.LastName,
                RefLocationId = converter.DaoToEntity(dao.RefLocationId),
                Phone         = dao.Phone
            };

            return(entity);
        }
        public Appointment DaoToEntity(AppointmentDao dao)
        {
            Appointment entity = new Appointment
            {
                Id            = dao.Id,
                DateTimeEnd   = dao.DateTimeEnd,
                DateTimeStart = dao.DateTimeStart,
                Description   = dao.Description,
                Price         = dao.Price,
                Type          = dao.Type,
                RefLabelId    = _labelConverter.DaoToEntity(dao.RefLabelId),
                RefLocationId = _locationConverter.DaoToEntity(dao.RefLocationId)
            };

            return(entity);
        }