Beispiel #1
0
        public AbstractIndex UpdateJobIndex(JobIndexDTO jobIndexDto)
        {
            var jobIndex = jobIndexService.UpdateJobIndex(new AbstractJobIndexId(jobIndexDto.Id)
                                                          , new AbstractJobIndexId(jobIndexDto.ParentId.Value), jobIndexDto.Name, jobIndexDto.DictionaryName
                                                          , jobIndexDto.CustomFields.Select(c => new CustomFieldTypeId(c.Id)).ToList()
                                                          );

            return(jobIndexMapper.MapToModel(jobIndex));
        }
Beispiel #2
0
        public AbstractIndexInPeriodDTO UpdateJobIndex(JobIndexInPeriodDTO abstractIndex)
        {
            var jobIndex = jobIndexService.UpdateJobIndex(new AbstractJobIndexId(abstractIndex.Id)
                                                          , new AbstractJobIndexId(abstractIndex.ParentId.Value)
                                                          , abstractIndex.CustomFields.ToDictionary(itm => new SharedJobIndexCustomFieldId(itm.Id), itm => itm.Value),
                                                          abstractIndex.IsInquireable, abstractIndex.CalculationOrder, abstractIndex.CalculationLevel
                                                          );

            return(jobIndexMapper.MapToModel(jobIndex));
        }