This solution should help me explain my desire
This commit is contained in:
26
ApiService/Controllers/RepositoryController.cs
Normal file
26
ApiService/Controllers/RepositoryController.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using RepositoryLibrary;
|
||||
|
||||
namespace ApiService.Controllers
|
||||
{
|
||||
[ApiController]
|
||||
[Route("/api")]
|
||||
public class RepositoryController : ControllerBase
|
||||
{
|
||||
private readonly IRepository _repsitory;
|
||||
public RepositoryController(IRepository repository)
|
||||
{
|
||||
_repsitory = repository;
|
||||
}
|
||||
[HttpGet("lookup")]
|
||||
public async Task<object> Lookup()
|
||||
{
|
||||
return await _repsitory.Lookup();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user