Esempio n. 1
0
        internal Comment EditComment(Comment editedComment)
        {
            Comment original = _repo.GetOneById(editedComment.Id);

            if (original == null)
            {
                throw new SystemException("INVALID ID");
            }
            else
            {
                original.Body = editedComment.Body != null ? editedComment.Body : original.Body;
                return(_repo.EditComment(original));
            }
        }