/// <summary> /// Gets the video by id. /// </summary> /// <param name="id">The id.</param> /// <returns></returns> public VideoViewModel GetVideoById(int id) { try { Video asset = VideoManager.FindBy(id); return(ObjectMapper.Map <Model.Entities.Video, VideoViewModel>(asset)); } catch (Exception ex) { ExceptionManager.HandleException(ex, PolicyNameType.ExceptionReplacing); } return(null); }