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(DbMqttServer mqtt); Task UpdateAsync(DbMqttServer mqtt); Task DeleteAsync(DbMqttServer mqtt); Task BeginTranAsync(); Task CommitTranAsync(); Task RollbackTranAsync(); } }