Esempio n. 1
0
        private List <GroupData> GetGroupsDataList(string organizerCode)
        {
            GroupsDataList = new List <GroupData>();
            var             groupQuery = _flightSpannersData.GetGroupsByOrganizerCode(organizerCode);
            GroupOfSpanners groupOfSpanners;

            foreach (var group in groupQuery)
            {
                groupOfSpanners = _flightSpannersData.GetGroupOfSpannersByGroupName(group.GroupName);
                GroupsDataList.Add(new GroupData {
                    OrganizerCode           = group.OrganizerCode,
                    GroupName               = group.GroupName,
                    RecordStarting          = groupOfSpanners.RecordStarting,
                    IsCalculationSectorTime = groupOfSpanners.IsCalculationSectorTime,
                    CalculationResetEvery   = groupOfSpanners.CalculationResetEvery
                });
            }
            return(GroupsDataList);
        }