Ejemplo n.º 1
0
        private List <SystemViewModels.AdmHelgdagViewModel> ConvertAdmHelgdagToViewModel(List <AdmHelgdag> holidayList)
        {
            var holidayViewList = new List <SystemViewModels.AdmHelgdagViewModel>();

            foreach (var holiday in holidayList)
            {
                var holidayView = new SystemViewModels.AdmHelgdagViewModel()
                {
                    Id              = holiday.Id,
                    Helgdatum       = holiday.Helgdatum,
                    Helgdag         = holiday.Helgdag,
                    Informationstyp = _portalSosService.HamtaInfo(holiday.InformationsId).Informationstyp
                };

                holidayViewList.Add(holidayView);
            }
            return(holidayViewList);
        }