using DMS.Core.Models; using DMS.Infrastructure.Entities; using System.Collections.Generic; using System.Threading.Tasks; namespace DMS.Infrastructure.Interfaces { public interface IMqttRepository { Task GetByIdAsync(int id); Task> GetAllAsync(); Task AddAsync(DbMqtt mqtt); Task UpdateAsync(DbMqtt mqtt); Task DeleteAsync(DbMqtt mqtt); Task BeginTranAsync(); Task CommitTranAsync(); Task RollbackTranAsync(); } }