Beispiel #1
0
        public ActionResult Delete(string name)
        {
            DELTAXDAL.Movie result = db.GetMovieDetails(name);
            var             movie  = DAL_to_Client_Movie(result);

            return(View(movie));
        }
Beispiel #2
0
 public DELTAXDAL.Movie Client_to_DAL(Models.Movie Client_MV)
 {
     DELTAXDAL.Movie movie = new DELTAXDAL.Movie();
     movie.Name          = Client_MV.Name;
     movie.plot          = Client_MV.plot;
     movie.Poster        = Client_MV.Poster;
     movie.Actors        = Client_MV.Actors;
     movie.yearofRelease = Client_MV.yearOfRelease;
     return(movie);
 }
Beispiel #3
0
 public Models.Movie DAL_to_Client_Movie(DELTAXDAL.Movie DAL_MV)
 {
     Models.Movie movie = new Models.Movie();
     movie.Name          = DAL_MV.Name;
     movie.plot          = DAL_MV.plot;
     movie.Poster        = DAL_MV.Poster;
     movie.Actors        = DAL_MV.Actors;
     movie.yearOfRelease = (DateTime)DAL_MV.yearofRelease;
     return(movie);
 }