/// <summary>
        ///     保存文章类型
        /// </summary>
        /// <param name="articleType"></param>
        /// <returns></returns>

        public OperateStatus SaveArticleType(CreateArticleTypeDto articleType)
        {
            if (articleType.Id.IsEmptyGuid())
            {
                articleType.CreateTime = DateTime.Now;
                //articleType.Id = CombUtil.NewComb();
                //return await InsertAsync(articleType);
            }
            else
            {
                //var artType = await _systemArticleTypeRepository.GetById(articleType.Id);
                // articleType.CreateTime = artType.CreateTime
                // return await UpdateAsync(articleType);
            }
            return(null);
        }
Пример #2
0
 public JsonResult SaveArticleType(CreateArticleTypeDto articleType)
 {
     return(Json(_systemArticleTypeLogic.SaveArticleType(articleType)));
 }