Files
ServicesCallService/ApiService/Controllers/RepositoryController.cs
2020-10-19 12:55:29 -04:00

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();
}
}
}