CsharpTemplate/APITemplate/Services/ExampleService.cs
2023-10-27 19:00:41 +07:00

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