Пример #1
0
        public static dtoSelectRatingValue Create(long idRatingSet, TemplateRatingValue ratingValue, Int32 idLanguage, Int32 idDefaultLanguage)
        {
            dtoSelectRatingValue dto = new dtoSelectRatingValue();

            dto.Id          = ratingValue.Id;
            dto.Deleted     = ratingValue.Deleted;
            dto.Translation = ratingValue.GetTranslation(idLanguage, idDefaultLanguage);
            dto.IdRatingSet = idRatingSet;
            dto.Value       = ratingValue.Value;
            dto.FuzzyValue  = ratingValue.FuzzyValue;
            dto.IsFuzzy     = ratingValue.IsFuzzy;
            return(dto);
        }
Пример #2
0
        public dtoSelectRatingValue Copy(long idMethod, long idRatingSet)
        {
            dtoSelectRatingValue dto = new dtoSelectRatingValue();

            dto.Id          = Id;
            dto.Deleted     = Deleted;
            dto.Translation = Translation;
            dto.IsFuzzy     = IsFuzzy;
            dto.Value       = Value;
            dto.IsFuzzy     = IsFuzzy;
            dto.FuzzyValue  = FuzzyValue;
            dto.IdRatingSet = idRatingSet;
            dto.IdMethod    = idMethod;
            return(dto);
        }