Exemple #1
0
        public async Task <IActionResult> PostAdvertisementAsync(AdvertisementInput input)
        {
            try
            {
                await _advertisementService.PostAdvertisementAsync(input);

                return(AddSuccessMsg());
            }
            catch (Exception err)
            {
                _logger.Error("添加测试数据失败", err.Message);
                return(FailedMsg("添加测试数据失败!" + err.Message));
            }
        }