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));
        }
Example #2
0
        public string GetByUserName(string userName)
        {
            var helloString = _helloService.GetHelloStringByUserName(userName);

            return(helloString);
        }