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

            return(helloString);
        }