Exemplo n.º 1
0
        // GET: Clients
        public ActionResult Index()
        {
            List <Int64>         clients   = clientsB.ClientsAll().ToList();
            List <All_Providers> providers = providersB.GetAll().ToList();

            foreach (var y in providers)
            {
                foreach (var x in clients)
                {
                    if (y.IDPerson == x)
                    {
                        y.IsClient = true;
                    }
                }
            }
            return(View(providers));
        }