Ejemplo n.º 1
0
        public IResult DeleteComment(Guid commentId)
        {
            var comment = _commentDAL.Get(f => f.ID == commentId);

            if (comment != null)
            {
                _commentDAL.Remove(comment);
                return(new SuccessResult(Messages.DeleteComment));
            }
            return(new ErrorResult());
        }