Ejemplo n.º 1
0
        public ActionResult CreateMovie()
        {
            DeltaXRepository obj = new DeltaXRepository();

            ViewBag.producerList = obj.FetchProducer();
            ViewBag.ActorList    = obj.FetchActor();
            return(View());
        }
Ejemplo n.º 2
0
        public ActionResult UpdateMovie(int id)
        {
            DeltaXRepository obj = new DeltaXRepository();
            DeltaXMapper <Movie, Models.Movie> mapobj = new DeltaXMapper <Movie, Models.Movie>();

            ViewBag.producerList = obj.FetchProducer();
            ViewBag.ActorList    = obj.FetchActor();
            var mov = obj.FetchMovie().Where(x => x.MovieId == id).Single();

            return(View(mapobj.Translate(mov)));
        }