Ejemplo n.º 1
0
            public bool UpdateUser(Client client)
            {
                var c = ActiveClients.FirstOrDefault(x => x.GridID == client.GridID | x.ID == client.ID);

                if (c != default(Client))
                {
                    ActiveClients[ActiveClients.IndexOf(c)] = client;
                }
                else
                {
                    ActiveClients.Add(client);
                }
                return(true);
            }