public IActionResult GetByUserName([FromQuery] HelloGetByUserNameRequest request) { var helloString = _helloService.GetHelloStringByUserName(request.UserName); var response = new HelloGetByUserNameResponse { Data = new HelloGetByUserNameResponseData { Message = helloString } }; return(new JsonResult(response)); }
public IActionResult GetByUserName([FromQuery] HelloGetByUserNameRequest request) { var response = _helloGetByUserNameUseCase.Handle(request); return(new JsonResult(response)); }