public ActionResult Index(string searchTerm = null) { var model = _repo.Get(Client, searchTerm); if (Request.IsAjaxRequest()) { return(PartialView("_DataSources", model)); } return(View(model)); }
// GET: DataSources public ActionResult Index() { return(View(manager.Get(Client))); }