public async Task <IHttpActionResult> List(string query = null) { return(JsonWithPermissions(new { Results = await SamplesDao.Find(this, query) })); }
public async Task <ActionResult> Index(string query = null) { if (string.IsNullOrWhiteSpace(query)) { return(View(new SamplesSearchViewModel())); } var model = new SamplesSearchViewModel { Query = query, Results = await SamplesDao.Find(this, query) }; return(View(model)); }