public ActionResult Create([Bind(Include = "MovieId,MovieName,DirectorName,HeroName,HeroinName,MovieTypeName")] movie movie)
        {
            if (ModelState.IsValid)
            {
                db.Movie.Add(movie);

                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(movie));
        }
        public ActionResult Create([Bind(Include = "CustomerID,CustomerName,CustomerLastName,CustomerGender,CustomerEmail,CustomerPhone")] Customer customer)
        {
            if (ModelState.IsValid)
            {
                db.customer.Add(customer);
                //        try
                //        {
                db.SaveChanges();
                return(RedirectToAction("Index"));
                //        }
                //        catch (OptimisticConcurrencyException)
                //        {
                //            //db.Refresh(RefreshMode.ClientWins, db.Articles);
                //            db.SaveChanges();
                //            return RedirectToAction("Index");
            }
            //        //db.SaveChanges();
            //        //return RedirectToAction("Index");


            return(View(customer));
        }