public FilmDTO GetFilmById(int idFilm) { try { return(HelperBll.convertFilm(this._filmManager.getFilmFromId(idFilm))); } catch (Exception) { return(null); } }
//RETURN from < COMMENTS <= to public IQueryable <CommentDTO> getCommentsFromTo(int from, int to) { try { return(this._filmManager.getCommentsFromTo(from, to).Select(comment => new CommentDTO() { Content = comment.Content, Date = comment.Date, Film = HelperBll.convertFilm(comment.Film), Id = comment.Id, Rate = comment.Rate, Username = comment.Username })); } catch (Exception) { return(null); } }