Blog.Logic.Core.PostContentsLogic.Add C# (CSharp) Метод

Add() публичный Метод

public Add ( PostContent postContent ) : PostContent
postContent Blog.Common.Contracts.PostContent
Результат Blog.Common.Contracts.PostContent
        public PostContent Add(PostContent postContent)
        {
            try
            {
                return PostContentMapper.ToDto(_postContentRepository.Add(PostContentMapper.ToEntity(postContent)));
            }
            catch (Exception ex)
            {
                throw new BlogException(ex.Message, ex.InnerException);
            }
        }