public async Task <IActionResult> Add([FromBody] BannerItemAddOrChangeRequest request) { BannerItemAddOrChangeResponse response = new BannerItemAddOrChangeResponse(); try { ValidationResult validate = BannerItemAddRequestValidate.ValidateModel(request); if (validate.IsValid) { response = await _bannerAppService.BannerItemAddOrChange(request); } else { response.SetFail(validate.Errors.Select(p => p.ToString())); } return(Json(response)); } catch (Exception e) { _logger.LogError(e, Common.Common.GetMethodName(), request); throw; } }