コード例 #1
0
        public IActionResult PostRenameContainer(int id, string name)
        {
            var currentUser = _backOfficeSecurityAccessor.BackOfficeSecurity?.CurrentUser;
            var result      = _dataTypeService.RenameContainer(id, name, currentUser?.Id ?? -1);

            if (result.Success)
            {
                return(Ok(result.Result));
            }
            else
            {
                return(ValidationProblem(result.Exception?.Message));
            }
        }