コード例 #1
0
        public ActionResult Add(CategoryViewModel model)
        {
            model.CategoryDO.CreateUserId = GetLoggedUserId();
            model.CategoryDO.UpdateUserId = GetLoggedUserId();
            Result <CategoryDO> result = _categoryBL.Add(CacheKey, model.CategoryDO);

            return(Json(result));
        }
コード例 #2
0
        public IActionResult InsertCategory([FromBody] CategoryDO category)
        {
            Result <CategoryDO> result = _categoryBL.Add(CacheKey, category);

            return(Json(result));
        }