public async Task <ValidationResult> SayHello(HelloViewModel helloViewModel) { return(await _helloAppService.SayHello(helloViewModel)); }
public async Task <IActionResult> Post([FromBody] HelloViewModel helloViewModel) { return(!ModelState.IsValid ? CustomResponse(ModelState) : CustomResponse(await _helloAppService.SayHello(helloViewModel))); }
public async Task <IActionResult> Post([FromBody] HelloViewModel helloViewModel) { _log.LogInformation($"[{nameof(HelloController)}][{nameof(Post)}]Posted|{JsonSerializer.Serialize(helloViewModel)}"); return(!ModelState.IsValid ? CustomResponse(ModelState) : CustomResponse(await _helloAppService.SayHello(helloViewModel))); }