public static void Main(string[] args) { var list = CallHistoryRepository.GetCallsEmptyLinkAll() ?? new List <CallHistoryInfo>(); RepairCall(list.Where(c => !c.CallId.IsStringNullOrEmpty()) .Where(c => c.Duration.IsStringNullOrEmpty())); list = list.Where(c => c.StatusMapId > 0).ToList(); list = userLogType == (int)EmployeeType.Consultant ? list.Where(c => c.UserLogType.IsIntegerNull() || c.UserLogType == userLogType).ToList() : list.Where(c => c.UserLogType == userLogType).ToList(); }