Esempio n. 1
0
        //
        // GET: /InfoClient/Client/
        public ActionResult Index()
        {
            Client client = new Client();
            client.ListClient = client.GetListeClient();

            return View("ListClient", client);
        }
Esempio n. 2
0
        public ActionResult ListClient()
        {
            Client client = new Client();
            client.ListClient = client.GetListeClient();

            if (client.ListClient.Count() > 0 & client.ListClient.Count() == 1)
            {
                ViewData["Result"] = "Il y a " + client.ListClient.Count().ToString() + " client.";
            }
            if (client.ListClient.Count() > 1)
            {
                ViewData["Result"] = "Il y a " + client.ListClient.Count().ToString() + " clients.";
            }
            else
            {
                ViewData["Result"] = "Liste vide";
            }

            return View("ListClient", client);
        }