Пример #1
0
        public string Generate()
        {
            var firstName = _firstNameGenerator.Generate();
            var lastName  = _lastNameGenerator.Generate();

            return($"{firstName} {lastName}");
        }
        public IActionResult Get()
        {
            var name = _nameGenerator.Generate();

            return(Ok(name));
        }
 public string GetLastName()
 {
     return(_nameGenerator.Generate());
 }