Exemple #1
0
        public ActionResult Delete(string name)
        {
            DELTAXDAL.Actor result = db.GetActorDetails(name);
            var             actor  = DAL_to_Client(result);

            return(View(actor));
        }
Exemple #2
0
        public ActionResult Edit(string name)
        {
            DELTAXDAL.Actor result  = db.GetActorDetails(name);
            var             result1 = DAL_to_Client(result);

            return(View(result1));
        }
Exemple #3
0
 public DELTAXDAL.Actor Client_To_DAL(Models.Actor Clientactor)
 {
     DELTAXDAL.Actor actor = new DELTAXDAL.Actor();
     actor.Name = Clientactor.Name;
     actor.sex  = Clientactor.sex;
     actor.bio  = Clientactor.bio;
     actor.dob  = (DateTime)Clientactor.dob;
     return(actor);
 }
Exemple #4
0
 public Models.Actor DAL_to_Client(DELTAXDAL.Actor DALactor)
 {
     Models.Actor actor = new Models.Actor();
     actor.Name = DALactor.Name;
     actor.sex  = DALactor.sex;
     actor.bio  = DALactor.bio;
     actor.dob  = (DateTime)DALactor.dob;
     return(actor);
 }