CsharpTemplate/APITemplate/Services/ExampleService.cs

22 lines
459 B
C#
Raw Normal View History

2023-10-27 19:00:41 +07:00
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);
}
}
}