Пример #1
0
        public static Kpi Create(short year, Realm realm, Region region)
        {
            var entity = new Kpi()
            {
                Year = year, Realm = realm, Region = region
            };

            return(entity);
        }
Пример #2
0
        public static KpiRev Create(Kpi kpi, string kpiName, string kpiDesc, string calculationFormula, UnitOfMeasure unitOfMeasure, MonthlyValuesValueObject targets, User userCreator)
        {
            var entity = new KpiRev(userCreator)
            {
                Kpi                = kpi,
                KpiName            = kpiName,
                KpiDesc            = kpiDesc,
                CalculationFormula = calculationFormula,
                UnitOfMeasure      = unitOfMeasure,
                Targets            = targets
            };

            return(entity);
        }