Esempio n. 1
0
        public ActionResult Create(Prospect item)
        {
            try
            {
                // TODO: Add insert logic here
                Prospect AVM = new Prospect();
                AVM.Address               = item.Address;
                AVM.DateDebut             = item.DateDebut;
                AVM.DateFin               = item.DateFin;
                AVM.MatriculeChefCampagne = item.MatriculeChefCampagne;
                AVM.MatriculeVehicule     = item.MatriculeVehicule;
                AVM.id = item.id;

                ProspectService.Add(AVM);
                ProspectService.Commit();

                return(RedirectToAction("Index"));
            }
            catch
            {
                return(View());
            }
        }