コード例 #1
0
        public ActionResult Index(string searchTerm = null)
        {
            var model = _repo.Get(Client, searchTerm);

            if (Request.IsAjaxRequest())
            {
                return(PartialView("_DataSources", model));
            }

            return(View(model));
        }
コード例 #2
0
 // GET: DataSources
 public ActionResult Index()
 {
     return(View(manager.Get(Client)));
 }