public IActionResult Create(string articleTypeName)
        {
            var blogArticleTypeDto = new BlogArticleTypeDto()
            {
                TypeName = articleTypeName
            };

            _blogArticleType.Insert(blogArticleTypeDto);
            return(RedirectToAction("Index"));;
        }
        public bool Insert(BlogArticleTypeDto entity)
        {
            var v = _repository.FirstOrDefault(x => x.TypeName == entity.TypeName);

            if (v == null)
            {
                _repository.Insert(Mapper.Map <BlogArticleTypeEntity>(entity));
                return(true);
            }
            return(false);
        }