public ActionResult Add(CategoryViewModel model) { model.CategoryDO.CreateUserId = GetLoggedUserId(); model.CategoryDO.UpdateUserId = GetLoggedUserId(); Result <CategoryDO> result = _categoryBL.Add(CacheKey, model.CategoryDO); return(Json(result)); }
public IActionResult InsertCategory([FromBody] CategoryDO category) { Result <CategoryDO> result = _categoryBL.Add(CacheKey, category); return(Json(result)); }