예제 #1
0
 public ActionResult GetCatNames(string gender)
 {
     if (ModelState.IsValid)
     {
         if (gender == null)
         {
             return(View((List <Owner>)_people.GetOwnerCatNames()));
         }
         else
         {
             return(View(new List <Owner> {
                 _people.GetOwnerCatNames(gender)
             }));
         }
     }
     return(new EmptyResult());
 }