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 string GetByUserName(string userName) { var helloString = _helloService.GetHelloStringByUserName(userName); return(helloString); }