Exemplo n.º 1
0
        public void SaveCall(Call call)
        {
            if (_calls.Contains(call))
            {
                var oldCall = _calls.Find(el => el.Equals(call));
                _calls.Remove(oldCall);

                var oldCalls = oldCall.GetCalls();
                oldCalls.Add(oldCall);
                call.AddCalls(oldCalls);
                _calls.Add(call);
            }
            else
            {
                _calls.Add(call);
            }
        }