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