public List <CategoryDTO> GetAll() { return(categoryBLL.GetAll()); }
//查询数据,并在DGV上显示 private void QueryData() { _list = _categoryBll.GetAll(); dgvCategory.DataSource = _list; }
private void CategoryListForm_Load(object sender, EventArgs e) { dgvCategories.DataSource = _categoryBLL.GetAll(); }
public IEnumerable <Category> GetAll([FromQuery] string search) { return(service.GetAll(search)); }