public async Task <IViewComponentResult> InvokeAsync(int id) { var employee = await employeeStore.Find(id); if (id == 12) { return(View("XYZ", employee)); } return(View(employee)); }
public async Task <IActionResult> Find([FromQuery] string searchString) { var employeeList = await _employeeStore.Find(searchString); return(Json(employeeList)); }