public async Task<Person> GetPerson()
        {
            // Person has a property of type Person. Only Top level should be updated.
            var person = new Person();
            await TryUpdateModelAsync(
                person,
                prefix: string.Empty,
                includeExpressions: m => m.Parent);

            return person;
        }
 public Person GetPersonParameter(Person p)
 {
     return p;
 }
Пример #3
0
 public Person Person(Person boundPerson)
 {
     return boundPerson;
 }