コード例 #1
0
        public string[] Get()
        {
            var conditions = new NamingConditions
            {
                MinimumGroups      = 2,
                MaximumGroups      = 7,
                TotalNames         = 20,
                NameComponentCount = 2,
                Molecules          = Molecule.GetDefaultCollection()
            };

            return(Post(conditions));
        }
コード例 #2
0
 public string[] Post([FromBody] NamingConditions conditions)
 {
     return(_service
            .GenerateRandomNames(conditions)
            .ToArray());
 }