public ActionResult Query(string sex) { CatService catService = new CatService(); Cat c = catService.Query(sex).FirstOrDefault(); if (c != null) { return(Content(c.Name)); } return(Content("no")); }