|
12345678910111213141516171819202122232425 |
-
- using Karsha_Site.Application.Services.Common.Queries.GetCustomer;
- using Microsoft.AspNetCore.Mvc;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Threading.Tasks;
-
- namespace EndPoint.Site.ViewComponents
- {
- public class Search:ViewComponent
- {
- private readonly IGetCustomerService _getCategoryService;
- public Search(IGetCustomerService getCategoryService)
- {
- _getCategoryService = getCategoryService;
- }
-
-
- public IViewComponentResult Invoke()
- {
- return View(viewName: "Search", _getCategoryService.Execute().Data);
- }
- }
- }
|