22 lines
459 B
C#
22 lines
459 B
C#
using APITemplate.Models;
|
|
using APITemplate.Repositories;
|
|
|
|
namespace APITemplate.Services
|
|
{
|
|
public class ExampleService
|
|
{
|
|
private IExampleRepository _repo;
|
|
private LogService _log;
|
|
public ExampleService(IExampleRepository repo, LogService log)
|
|
{
|
|
_log = log;
|
|
_repo = repo;
|
|
}
|
|
|
|
public void Insert(Example example)
|
|
{
|
|
_repo.Insert(example);
|
|
}
|
|
}
|
|
}
|