Blog.Logic.Core.CommentsLogic.Get C# (CSharp) Method

Get() public method

public Get ( int commentId ) : Comment
commentId int
return Blog.Common.Contracts.Comment
        public Comment Get(int commentId)
        {
            try
            {
                var db = _commentRepository.Find(a => a.CommentId == commentId, null, null).FirstOrDefault();
                return CommentMapper.ToDto(db);
            }
            catch (Exception ex)
            {
                throw new BlogException(ex.Message, ex.InnerException);
            }
        }