コード例 #1
0
        public async Task <IActionResult> Delete(string languageId)
        {
            var result = await _tenantLanguageService.Delete(CurrentUser.TenantId, languageId);

            if (result.Code <= 0)
            {
                return(BadRequest(result));
            }
            return(Ok(result));
        }
コード例 #2
0
        public async Task <IActionResult> RemoveLanguage(string id, string languageId)
        {
            var result = await _tenantLanguageService.Delete(id, languageId);

            if (result.Code <= 0)
            {
                return(BadRequest(result));
            }

            return(Ok(result));
        }