예제 #1
0
 public ActionResult Login(LoginCli loginCli)
 {
     if (loginCli.VerifID())
     {
         id = loginCli.Login;
         DataVehicule d = new DataVehicule();
         d.getVehicules(id);
         return(View("Index", d));
     }
     else
     {
         return(View(loginCli));
     }
 }
예제 #2
0
        public ActionResult Validation(string idvehicule, DataVehicule data)
        {
            string plaque = "";
            Random random = new Random();

            plaque += Convert.ToChar(random.Next(65, 90));
            plaque += Convert.ToChar(random.Next(65, 90));
            plaque += random.Next(00, 999).ToString("000");
            plaque += Convert.ToChar(random.Next(65, 90));
            plaque += Convert.ToChar(random.Next(65, 90));

            ServiceReference.ServiceClient client = new ServiceReference.ServiceClient();
            client.SortieUsine(Convert.ToInt32(idvehicule), plaque);

            DataVehicule d = new DataVehicule();

            d.getVehicules(id);
            return(View("Index", d));
        }