コード例 #1
0
 public ActionResult BusinessPartnerContent(string initial)
 {
     if (Request.IsAjaxRequest())
     {
         BusinessPartnerData data = new BusinessPartnerData();
         var results = data.GetAll(initial);
         if (results.Count() == 0)
         {
             return(PartialView("_NoResult"));
         }
         else
         {
             return(PartialView("_BusinessPartnerContent", results));
         }
     }
     return(Content("Ajax通信以外のアクセスはできません"));
 }