您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

12345678910111213141516171819202122232425
  1. using Karsha_Site.Application.Services.Common.Queries.GetCustomer;
  2. using Microsoft.AspNetCore.Mvc;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Threading.Tasks;
  7. namespace EndPoint.Site.ViewComponents
  8. {
  9. public class Search:ViewComponent
  10. {
  11. private readonly IGetCustomerService _getCategoryService;
  12. public Search(IGetCustomerService getCategoryService)
  13. {
  14. _getCategoryService = getCategoryService;
  15. }
  16. public IViewComponentResult Invoke()
  17. {
  18. return View(viewName: "Search", _getCategoryService.Execute().Data);
  19. }
  20. }
  21. }