13 lines
387 B
C#
13 lines
387 B
C#
using Contracts.DTO;
|
|
using Contracts.SearchModels;
|
|
|
|
namespace Contracts.Repositories;
|
|
|
|
public interface IUserRepo
|
|
{
|
|
public Task<UserDto?> Get(UserSearch search);
|
|
public Task<UserDto> Create(UserDto user);
|
|
public Task<UserDto?> Update(UserDto user);
|
|
public Task<bool> ChangeBalance(UserSearch search, decimal amount);
|
|
public Task<UserDto?> Delete(UserSearch search);
|
|
} |