public ActionResult Delete(string name) { DELTAXDAL.Actor result = db.GetActorDetails(name); var actor = DAL_to_Client(result); return(View(actor)); }
public ActionResult Edit(string name) { DELTAXDAL.Actor result = db.GetActorDetails(name); var result1 = DAL_to_Client(result); return(View(result1)); }
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); }
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); }