18 lines
478 B
C#
18 lines
478 B
C#
using DMS.Core.Models;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace DMS.Infrastructure.Interfaces
|
|
{
|
|
public interface IUserRepository
|
|
{
|
|
Task<User> GetByIdAsync(int id);
|
|
Task<List<User>> GetAllAsync();
|
|
Task<int> AddAsync(User user);
|
|
Task<int> UpdateAsync(User user);
|
|
Task<int> DeleteAsync(int id);
|
|
Task BeginTranAsync();
|
|
Task CommitTranAsync();
|
|
Task RollbackTranAsync();
|
|
}
|
|
} |