public override ActionResult Index(int?pageIndex) { int index = pageIndex ?? 1; IEnumerable <T_Operation> entities = (IEnumerable <T_Operation>)Session[cacheSearchKey] ?? opService.GetAll(); IEnumerable <T_Operation> result = opService.GetSearchPagingInfo(entities, index, base.PageSize); return(PartialView("_OperationGrid", result)); }
private void LoadGrid() { try { dgOperation.ItemsSource = operationService.GetAll(); } catch (Exception ex) { MessageBox.Show(ex.Message + " - Erro ao consultar dados", "Error", MessageBoxButton.OK, MessageBoxImage.Error); } finally { isEditmode = false; } }
//返回当前所有手术数据 public ActionResult OpeAll() { OperationService operationService = new OperationService(); List <OperationDTO> operationDTOs = operationService.GetAll().ToList(); return(Json(operationDTOs)); }
public List <Operation> GetAll() { return(operationService.GetAll()); }
public IActionResult GetAll() { return(Ok(operationService.GetAll())); }
public IQueryable <Operation> GetAll() { var list = _operationService.GetAll(); return(list.AsQueryable()); }