コード例 #1
0
ファイル: LevelController.cs プロジェクト: HungNV88/CRM
        public List <LevelInfo> GetLevelWithCallHistoryCount(int groupUserId, int userIds, string hanoverDate, string callTime, int statusCare, int statusMap)
        {
            var branchId = UserContext.GetDefaultBranch();
            var levels   = LevelRepository.GetAllWithHistoryCount(groupUserId, userIds, hanoverDate, callTime, statusCare, statusMap) ?? new List <LevelInfo>();

            foreach (var level in StoreData.ListLevel.Where(c => !levels.Exists(p => p.LevelId == c.LevelId)))
            {
                levels.Add(level);
            }
            return(levels.OrderBy(c => c.LevelId).ToList());
        }