public ActionResult CreateProducer(Models.Producer record) { DeltaXMapper <Models.Producer, Producer> mapobj = new DeltaXMapper <Models.Producer, Producer>(); DeltaXRepository obj = new DeltaXRepository(); obj.AddProducer(mapobj.Translate(record)); return(RedirectToAction("CreateMovie")); }
public ActionResult UpdateMovieDetails(Models.Movie record) { DeltaXMapper <Models.Movie, Movie> mapobj = new DeltaXMapper <Models.Movie, Movie>(); DeltaXRepository obj = new DeltaXRepository(); var ActorsIdArray = record.ActorList.Split(','); var mov = obj.UpdateMovie(mapobj.Translate(record), ActorsIdArray); return(RedirectToAction("GetAllMovieDetails")); }
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))); }