You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Search.cs 644B

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