private void PopulateClients() { var clients = clientService.GetAll(); ViewData["clients"] = clients; ViewData["defaultClient"] = clients.First(); }
public void Load(IClientDataService clientDataService) { var clients = clientDataService.GetAll(); Clients.Clear(); foreach (var item in clients) { Clients.Add(item); } }