예제 #1
0
        /// <summary>
        /// Add new Blog
        /// </summary>
        /// <param name="blog"></param>
        /// <returns></returns>
        public int CreateBlog(BusinessModels.Blog.Blog blog)
        {
            var model = _mapper.Map <BlogDto>(blog);

            return(_blogService.CreateBlog(model));
        }