public LabelTranslationDao EntityToDao(LabelTranslation entity)
        {
            LabelTranslationDao dao = new LabelTranslationDao
            {
                Id               = entity.Id,
                RefLabelId       = converter.EntityToDao(entity.RefLabelId),
                Language         = entity.Language,
                TranslationValue = entity.TranslationValue
            };

            return(dao);
        }
示例#2
0
        public MerchendiseDao EntityToDao(Merchendise entity)
        {
            MerchendiseDao dao = new MerchendiseDao
            {
                Id          = entity.Id,
                Description = entity.Description,
                Name        = entity.Name,
                Price       = entity.Price,
                Type        = entity.Type,
                RefLabelId  = converter.EntityToDao(entity.RefLabelId),
                HasStock    = entity.HasStock
            };

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

            return(dao);
        }