Blog.Logic.Core.ViewCountLogic.Add C# (CSharp) Method

Add() public method

public Add ( ViewCount viewCount ) : ViewCount
viewCount Blog.Common.Contracts.ViewCount
return Blog.Common.Contracts.ViewCount
        public  ViewCount Add(ViewCount viewCount)
        {
            try
            {
                return ViewCountMapper.ToDto(_viewCountRepository.Add(ViewCountMapper.ToEntity(viewCount)));
            }
            catch (Exception ex)
            {
                throw new BlogException(ex.Message, ex.InnerException);
            }
        }
    }