public ActionResult Create([Bind(Include = "Id,Name,Service,Description,Materials,OpenTime,CloseTime,State,Suburb,Address,Postcode,Phone,Email,Findme")] Cloth cloth)
        {
            if (ModelState.IsValid)
            {
                db.Clothes.Add(cloth);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(cloth));
        }
Beispiel #2
0
        public ActionResult Create([Bind(Include = "Id,Name,Address,Area,Tradingname,Industry_Description,Latitude,Longitude")] Cafe cafe)
        {
            if (ModelState.IsValid)
            {
                db.Cafes.Add(cafe);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(cafe));
        }
Beispiel #3
0
        public ActionResult Create([Bind(Include = "Id,Name,Orgname,Address1,Address2,Address3,City,State,Postcode,MainActivit,OtherActivity,Purposes")] Viccharity viccharity)
        {
            if (ModelState.IsValid)
            {
                db.Viccharities.Add(viccharity);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(viccharity));
        }