public string CreateDuck(string name, int age)
        {
            var duck = Duck.Create(name, age);

            _duckRepository.Add(duck);
            return(duck.Id.ToString());
        }
Exemple #2
0
    public void Main()
    {
        Duck d = Duck.Create <Donald>("Hello  World");

        Console.WriteLine(d.DucksParam0);
    }
 public void CreateRedhead(object o)
 {
     redheadDuck.Create(o);
 }
 public void CreateMallard(object o)
 {
     mallardDuck.Create(o);
 }