コード例 #1
0
        public IActionResult Update(ActionType actionType)
        {
            var result = _actionTypeService.Update(actionType);

            if (result.Success)
            {
                return(Ok(result.Message));
            }

            return(BadRequest(result.Message));
        }
コード例 #2
0
        public IActionResult Edit(ActionTypeDto actionTypeDto)
        {
            var response = new ResponseViewModel();

            response = _actionTypeService.Update(actionTypeDto);

            if (!response.IsSuccess)
            {
                return(BadRequest(response));
            }

            return(Ok(response));
        }