private void PopulateClients()
        {
            var clients = clientService.GetAll();

            ViewData["clients"]       = clients;
            ViewData["defaultClient"] = clients.First();
        }
예제 #2
0
        public void Load(IClientDataService clientDataService)
        {
            var clients = clientDataService.GetAll();

            Clients.Clear();

            foreach (var item in clients)
            {
                Clients.Add(item);
            }
        }