public Comment GetCommentById(int Id) { try { CommentDAL repository = new CommentDAL(); Comment comment = new Comment(); return(comment = repository.GetCommentById(Id)); } catch (Exception ex) { throw ex; } }
public Comment GetCommentById(int id) { return(CommentDAL.GetCommentById(id)); }