예제 #1
0
파일: Mbo.cs 프로젝트: leexar/diploma
        public static Mbo Create(User user, short year)
        {
            var entity = new Mbo()
            {
                User = user, Year = year
            };

            return(entity);
        }
예제 #2
0
파일: MboRev.cs 프로젝트: leexar/diploma
        public static MboRev Create(Mbo mbo, IList <Kpi> kpis, IDictionary <Kpi, MonthlyValuesValueObject> actuals, User userCreator)
        {
            var entity = new MboRev(userCreator)
            {
                Mbo = mbo
            };

            entity.Kpis    = kpis.Select(kpi => MboKpi.Create(entity, kpi)).ToList();
            entity.Actuals = actuals.Select(actuals => MboActuals.Create(entity, actuals.Key, actuals.Value)).ToList();

            return(entity);
        }