public ActionResult ActorDetails(int Id) { ActionResult response = null; ActorWithMoviesPO actorWith = new ActorWithMoviesPO(); try { List <MovieDO> movies = _movieDAO.ViewMoviesByActorID(Id); if (movies != null) { foreach (MovieDO movie in movies) { actorWith.Movies.Add(Mapping.Mapper.MovieDOtoPO(movie)); } } else { } ActorDO actorDO = _actorDAO.ViewActorByActorId(Id); actorWith.Actor = Mapping.Mapper.ActorDOtoPO(actorDO); response = View(actorWith); } catch (Exception exception) { _Logger.Log("Fatal", exception.Source, exception.TargetSite.ToString(), exception.Message, exception.StackTrace); response = RedirectToAction("ViewAllActors", "Actor"); } finally { } return(response); }