コード例 #1
0
 public ViewResult AddPerson(Person person)
 {
     if (ModelState.IsValid)
     {
         PeopleRepository.AddResponse(person);
         return(View("Thanks", person));
     }
     else
     {
         return(View());
     }
 }