27 lines
641 B
C#
27 lines
641 B
C#
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();
|
|
}
|
|
}
|
|
}
|