Exemplo n.º 1
0
        public ApiResult <string> UpdateNews(NewsDto newsDto)
        {
            _logger.Info("開始呼叫SysNewsService.UpdateNews");
            ApiResult <string> apiResult = new ApiResult <string>();

            apiResult.State = false;
            try
            {
                var KeyMan = User.Identity.Name;
                if (KeyMan == null)
                {
                    KeyMan = "";
                }
                apiResult.State = _sysNewsService.UpdateNews(newsDto, KeyMan);
            }
            catch (Exception ex)
            {
                apiResult.Message = ex.ToString();
            }
            return(apiResult);
        }