コード例 #1
0
        public async Task <IActionResult> Create(ArticleCategory_Dto model)
        {
            model.Update_By   = User.FindFirst(ClaimTypes.Name).Value;
            model.Update_Time = DateTime.Now;
            var data = await _articleCategoryService.Create(model);

            return(Ok(data));
        }
コード例 #2
0
        public async Task <IActionResult> Create(ArticleCategory_Dto model)
        {
            model.Update_By   = User.FindFirst(ClaimTypes.Name).Value;
            model.Update_Time = DateTime.Now;
            var result = await _articleCategoryService.Create(model);

            if (result.Success)
            {
                await _hubContext.Clients.All.LoadDataArticleCate();
            }
            return(Ok(result));
        }
コード例 #3
0
 public JsonResult Create(ArticleCategoryDto model)
 {
     _articlecategoryService.Create(model);
     return(Json(1, JsonRequestBehavior.AllowGet));
 }