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