Esempio n. 1
0
        internal static IEnumerable<Client> AddClient(Client newClient)
        {
            using (var entity = new StaffingModelContainer())
            {
                entity.ClientTable.Add(newClient.CreateDatabaseClient());
                entity.SaveChanges();
            }

            return GetClients();
        }