public ActionResult AddMovie(Movie movie)
        {
            if (ModelState.IsValid)
            {
                _context.Movie.Add(movie);
                _context.SaveChanges();
            }
            ViewBag.GereneId = new SelectList(_context.Generes, "GenereId", "GenereName", movie.GenereId);


            return(RedirectToAction("ListofMovie"));
        }
        public ActionResult AddCustomer([Bind(Include = "CustomerId,CustomerName,Email,BirthDate,MembershipId")] Customer customer)
        {
            //ViewBag.MembershipId = new SelectList(_context.MembershipTypes, "Id", "MembershipName");

            if (ModelState.IsValid)
            {
                _context.Customers.Add(customer);
                _context.SaveChanges();


                return(RedirectToAction("ListofCustomer"));
            }
            ViewBag.MembershipId = new SelectList(_context.MembershipTypes, "Id", "MembershipName", customer.MembershipId);
            return(View(customer));
        }
 public ActionResult AddmemberType(MembershipType membershipType)
 {
     _context.MembershipTypes.Add(membershipType);
     _context.SaveChanges();
     return(RedirectToAction("AddmemberType"));
 }
 public ActionResult AddGenere(Genere genere)
 {
     _context.Generes.Add(genere);
     _context.SaveChanges();
     return(RedirectToAction("AddGenere"));
 }