2025-07-19 09:25:01 +08:00
|
|
|
using DMS.Core.Models;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
2025-07-19 11:11:01 +08:00
|
|
|
namespace DMS.Infrastructure.Interfaces
|
2025-07-19 09:25:01 +08:00
|
|
|
{
|
|
|
|
|
public interface IDeviceRepository
|
|
|
|
|
{
|
2025-07-19 19:55:42 +08:00
|
|
|
Task<DbDevice> AddAsync(DbDevice model);
|
|
|
|
|
Task<int> UpdateAsync(DbDevice model);
|
|
|
|
|
Task<int> DeleteAsync(DbDevice model);
|
|
|
|
|
Task<List<DbDevice>> GetAllAsync();
|
|
|
|
|
Task<DbDevice> GetByIdAsync(int id);
|
2025-07-19 09:25:01 +08:00
|
|
|
}
|
|
|
|
|
}
|