Exemplo n.º 1
0
        public ActionResult Create([Bind(Include = "id,name,price_per_day,price_per_month,price,type,etat,governorate,delegation,surface,nbrpieces,rooms,image,piscine,description,taux_reduction")] Ad ad)
        {
            long idu = 1;

            if (ModelState.IsValid)
            {
                adService.AjouterAd(ad, idu);

                return(RedirectToAction("Index"));
            }

            return(View(ad));
        }