Exemple #1
0
        private Client GetClient(string name)
        {
            var client = ClientRepository.Get(name);

            if (client == null)
            {
                client = new Client()
                {
                    Name = name
                };
                ClientRepository.AddAndSave(client);
            }
            return(client);
        }