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)); }
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)); }
public JsonResult Create(ArticleCategoryDto model) { _articlecategoryService.Create(model); return(Json(1, JsonRequestBehavior.AllowGet)); }