Exemple #1
0
        public async void UnAssignAllUnreadThreadsFromAgent(string business_id, string agent_id)
        {
            var list = _counterRepository.GetThreadUnreadCountByAgent(business_id, agent_id);

            if (list != null)
            {
                foreach (var t in list)
                {
                    try
                    {
                        UnAssignFromAgent(business_id, t.id);
                    }
                    catch { }
                }
            }
            await _counterRepository.DeleteAllUnreadThreadCountersFromAgent(business_id, agent_id);
        }