Esempio n. 1
0
        public async Task <IActionResult> IsEnabledAsync([FromBody] IsEnabledDto dto)
        {
            try
            {
                await _teamServices.IsEnabledAsync(dto);

                return(UpdateSuccessMsg());
            }
            catch (Exception err)
            {
                _logger.Error(typeof(TeamController), "更新失败!", new Exception(err.Message));
                return(FailedMsg(err.Message));
            }
        }